Concourse resource type to interact with telegram bot
1M+
Telegram notification resource for ConcourseCI
Source:
bot_token: Required Bot token, for example 123456789:ABCDEFGHIJKLMNOPQRSTUVWQYZabcdefghichat_id: Required Chat idci_url: URL of your CI, if not defined will be used from $ATC_EXTERNAL_URLcommand: Required for get Command which will trigger a job, for example /buildadmins: Array of usernames (without @) who can use a command to trigger job, if not defined all users will be able to trigger a jobParams:
message: Message which will send with build infoYou can use input to get args from a command sent to bot.
All args will be stored in <resourse_name>/input_args
resource_types:
- name: telegram-notification
type: docker-image
source:
repository: cuttlerat/concourse-telegram-resource
tag: latest
resources:
- name: telegram
type: telegram-notification
source:
bot_token: ((telegram_bot_token))
chat_id: ((telegram_chat_id))
ci_url: "http://example.com"
admins: ((telegram_admins))
command: "/build"
jobs:
- name: test_task
plan:
- get: telegram
trigger: true
- task: Send message
on_success:
put: telegram
params:
message: Build successful
config:
platform: linux
image_resource:
type: docker-image
source: {repository: alpine, tag: "latest"}
inputs:
- name: telegram
run:
path: sh
args:
- -exc
- |
[[ -f telegram/input_args ]] && cat telegram/input_args || exit 0
/build
Build successful
URL: Link
Pipeline: test
Job: test_task
Build number: 1
Content type
Image
Digest
Size
4.3 MB
Last updated
over 7 years ago
docker pull vtutrinov/concourse-telegram-resource