Added dry-run and telegram messages with triggers
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-06-29 00:29:32 +02:00
parent 0ab9ec60fb
commit d8e401f779

View File

@@ -5,6 +5,17 @@ platform:
arch: arm64
steps:
- name: dryrun-docker
image: plugins/docker
settings:
repo:
from_secret: docker_repo
dry_run: true
when:
event:
exclude:
- pull_request
- name: docker-build-push
image: plugins/docker
settings:
@@ -16,4 +27,23 @@ steps:
from_secret: docker_pass
registry:
from_secret: docker_regst
insecure: true
insecure: true
when:
event:
exclude:
- pull_request
- name: send telegram notification
image: appleboy/drone-telegram
settings:
token:
from_secret: TELE_TOKEN
to:
from_secret : TELE_GID
message: "{{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{/success}}\n\n timecost: {{since build.started}}\n"
trigger:
ref:
- refs/heads/master
- "refs/pull/**"
- "refs/tags/**"