send notification on successful deployment
This commit is contained in:
parent
b911623d7a
commit
7dc508ffb9
1 changed files with 14 additions and 0 deletions
14
pipeline.yml
14
pipeline.yml
|
@ -123,3 +123,17 @@ jobs:
|
||||||
chmod 600 $HOME/.ssh/id_ed25519
|
chmod 600 $HOME/.ssh/id_ed25519
|
||||||
sed "s/TAG/((.:tag))/g" "site-repo/docker-stack.yml.template" > docker-stack.yml
|
sed "s/TAG/((.:tag))/g" "site-repo/docker-stack.yml.template" > docker-stack.yml
|
||||||
docker stack deploy --compose-file docker-stack.yml static
|
docker stack deploy --compose-file docker-stack.yml static
|
||||||
|
on_success:
|
||||||
|
task: notify-deployed
|
||||||
|
config:
|
||||||
|
platform: linux
|
||||||
|
image_resource:
|
||||||
|
type: registry-image
|
||||||
|
source:
|
||||||
|
repository: badouralix/curl-jq
|
||||||
|
run:
|
||||||
|
path: sh
|
||||||
|
args:
|
||||||
|
- -exc
|
||||||
|
- |
|
||||||
|
curl -X POST -d '{"body":"Static website deployed!"}' -H "Content-Type: application/json" https://apprise.pim.kunis.nl:444/notify/concourse
|
||||||
|
|
Reference in a new issue