Skip to content

Simple docker image for notifications in telegram for Gitlab CI

Notifications You must be signed in to change notification settings

timmilesdw/gitlabci-simple-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitlabCI Simple Notify

CircleCI

dockeri.co

Simple notifications from Gitlab CI to telegram

Usage

Set gitlab-ci variables TELEGRAM_BOT_TOKEN and TELEGRAM_USER_ID

docker run timmiles/gitlabci-simple-notify <start|end> <silent | "">
stages:
  - Notify Start
  - Generate Changelog
  - Build
  - Notify End

.notify_template: &notify_configuration
    image: timmiles/gitlabci-simple-notify

Notify Start:
    stage: Notify Start
    <<: *notify_configuration
    script:
      - /notify.sh start silent

Generate Changelog:
  stage: Generate Changelog
  image:
    name: quay.io/git-chglog/git-chglog:0.15.1
    entrypoint: [""]
  script:
    # Generate changelog logic

Build:
  only:
    - tags
  stage: Build
  image:
    name: gcr.io/kaniko-project/executor:debug
    entrypoint: [""]
  script:
    # build logic

Notify Success:
    stage: Notify End
    <<: *notify_configuration
    script:
      - /notify.sh loud end ✅

Notify Fail:
    stage: Notify End
    <<: *notify_configuration
    script:
      - /notify.sh loud end ❌
    when: on_failure

About

Simple docker image for notifications in telegram for Gitlab CI

Topics

Resources

Stars

Watchers

Forks