kind: pipeline name: default platform: os: linux arch: amd64 steps: - name: build image: golang:latest commands: - go build . - name: docker image: plugins/docker settings: tags: - latest repo: registry.darknebu.la/emile/tle2json registry: registry.darknebu.la username: from_secret: docker_username password: from_secret: docker_password - name: telegram-notification image: appleboy/drone-telegram settings: token: from_secret: telegram_token to: from_secret: telegram_to when: status: [ success, failure ] format: markdown message: > {{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded. 📝 Commit by {{commit.author}} on `{{commit.branch}}`: ``` {{commit.message}} ``` 🌐 {{ build.link }} {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed. 📝 Commit by {{commit.author}} on `{{commit.branch}}`: ``` {{commit.message}} ``` 🌐 {{ build.link }} {{/success}}