Add update hook
This commit is contained in:
parent
a9d0ce3f5f
commit
c26c141fcb
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -1,5 +1,8 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
environment {
|
||||||
|
WATCHTOWER_TOKEN = credentials("watchtower-token")
|
||||||
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Cloning our Git') {
|
stage('Cloning our Git') {
|
||||||
steps {
|
steps {
|
||||||
@ -33,6 +36,8 @@ pipeline {
|
|||||||
dockerImage.push()
|
dockerImage.push()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sh 'curl -H "Authorization: Bearer $WATCHTOWER_TOKEN" http://172.16.0.104:9001/v1/update'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user