Modularize
This commit is contained in:
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -1,3 +1,5 @@
|
||||
@Library("Pages")_
|
||||
|
||||
pipeline {
|
||||
agent any
|
||||
environment {
|
||||
@ -30,14 +32,7 @@ pipeline {
|
||||
|
||||
stage('Deploying Docker Image') {
|
||||
steps {
|
||||
script {
|
||||
dockerImage = docker.build("tobiasmanske.de:latest")
|
||||
docker.withRegistry('https://registry.chaoswg.org:5000', 'docker-registry-credentials') {
|
||||
dockerImage.push()
|
||||
}
|
||||
}
|
||||
|
||||
sh 'curl -H "Authorization: Bearer $WATCHTOWER_TOKEN" http://172.16.0.104:9001/v1/update'
|
||||
DeployPages("./docs", "tobiasmanske.de:latest")
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user