Skip to content

pocoz/drone-tg

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Drone telegram plugin

The result of the plug-in is a message that the bot will send you.:

Build status: success/failure
Build link: https://ci.your.site/service/1
Repo: repository name
Commit: your commit

Variables

  • proxy_url - You can use any proxy tool if api telegram is not available from your country(do not fill out to keep default) Example format : https://your.tg.proxy
  • token - Your telegram bot token - Required
  • chat_id - Chat ID, which will be sent to the bot notifications - Required

Example pipeline

kind: pipeline
name: CI/CD mf

workspace:
  base: /go
  path: mod/github.com/user/service

steps:
  - name: tests
    image: golang:latest
    commands:
      - go test -v --cover ./...

  - name: linters
    image: golang:latest
    commands:
      - go get -u golang.org/x/lint/golint
      - golint ./...

  - name: telegram notify
    image: pocoz/drone-tg
    settings:
      proxy_url: "https://your.proxy.url"
      token:
        from_secret: telegram_token
      chat_id:
        from_secret: telegram_chat_id
    when:
      status: [ success, failure ]

Build image:

docker build -t pocoz/drone-tg .

Push image:

docker push pocoz/drone-tg

About

Drone telegram plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published