From 7dc508ffb91d5775eb83531cced0f38512654944 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Thu, 25 May 2023 20:13:45 +0200 Subject: [PATCH] send notification on successful deployment --- pipeline.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pipeline.yml b/pipeline.yml index e0e04eb..1ae04fb 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -123,3 +123,17 @@ jobs: chmod 600 $HOME/.ssh/id_ed25519 sed "s/TAG/((.:tag))/g" "site-repo/docker-stack.yml.template" > docker-stack.yml 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