Modularize
This commit is contained in:
parent
4b45a7aeea
commit
8b7c390fda
@ -1,4 +0,0 @@
|
||||
FROM httpd:alpine
|
||||
COPY ./docs/ /usr/local/apache2/htdocs/
|
||||
RUN chown 1000 -R /usr/local/apache2/htdocs
|
||||
|
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")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user