Add update hook

This commit is contained in:
Tobias Manske 2021-03-21 15:32:57 +01:00
parent a9d0ce3f5f
commit c26c141fcb
Signed by: tobias
GPG Key ID: D5914DC71F2F9352

5
Jenkinsfile vendored
View File

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