send notification on successful deployment

This commit is contained in:
Pim Kunis 2023-05-25 20:13:45 +02:00
parent b911623d7a
commit 7dc508ffb9

View file

@ -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