GithubHelp home page GithubHelp logo

telegramdrone's Introduction

Drone telegram plugin

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

Repo name

✅ 第1次构建成功
🕙 耗时:1秒
📖 提交分支:master
🎅 提交者:hongzx
🔗 详情:https://ci.your.site/service/1
📃 提交信息: 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: project-go-api

steps:
  - name: build
    image: golang:latest
    pull: if-not-exists
    environment:
      GOPROXY: "https://goproxy.cn,direct" 
    volumes:
      - name: pkgdeps
        path: /go/pkg
    commands:
      - CGO_ENABLED=0 go build -o project-go-api
      
  - name: telegram
    image: hongzhuangxian/telegram-drone-plugin
    settings:
      proxy_url: "https://your.proxy.url"
      token:
        from_secret: telegram_token
      chat_id:
        from_secret: telegram_chat_id

Build packed:

set GOOS=linux
set GOARCH=amd64
set CGO_ENABLED=0
go build -o telegram-drone-plugin

Build image:

docker build -t hongzhuangxian/telegram-drone-plugin .

Push image:

docker push hongzhuangxian/telegram-drone-plugin

telegramdrone's People

Contributors

fblmg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.