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' } }