您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Syfaro ba3441b3f5 Test building first. Use external secrets. 10 个月前
.drone.yml Test building first. Use external secrets. 10 个月前
Dockerfile Initial commit. 10 个月前
README.md Automatically build and push image. 10 个月前
go.mod Initial commit. 10 个月前
go.sum Initial commit. 10 个月前
main.go Initial commit. 10 个月前

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