You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Syfaro ba3441b3f5 Test building first. Use external secrets. 10 months ago
.drone.yml Test building first. Use external secrets. 10 months ago
Dockerfile Initial commit. 10 months ago
README.md Automatically build and push image. 10 months ago
go.mod Initial commit. 10 months ago
go.sum Initial commit. 10 months ago
main.go Initial commit. 10 months ago

README.md

drone-telegram-artifact

A plugin for Drone to notify you on Telegram when a build succeeds or fails, and includes a link to a build artifact when successful.

My registry is private so you need to build your own image, but here is an example configuration.

- name: send-link
  image: registry.huefox.com/drone-telegram-artifact:1
  when:
    branch:
    - master
  settings:
    telegram_chat:
      from_secret: telegram_chat
    telegram_token:
      from_secret: telegram_token
    minio_endpoint:
      from_secret: minio_endpoint
    minio_bucket:
      from_secret: minio_bucket
    minio_path: your_dir/${DRONE_COMMIT_SHA}/file.zip

An example message:

Successfully built #7 on repo.
Commit: https://git.huefox.com/syfaro/repo/compare/commit1...commit2

Build artifacts: https://your.host/bucket/project/commit/file.zip