From c26c141fcba0d972056ae34061e46b3edf9aba94 Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Sun, 21 Mar 2021 15:32:57 +0100 Subject: [PATCH] Add update hook --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index ae9604b..7faa722 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,8 @@ pipeline { agent any + environment { + WATCHTOWER_TOKEN = credentials("watchtower-token") + } stages { stage('Cloning our Git') { steps { @@ -33,6 +36,8 @@ pipeline { dockerImage.push() } } + + sh 'curl -H "Authorization: Bearer $WATCHTOWER_TOKEN" http://172.16.0.104:9001/v1/update' } }