Modularize

This commit is contained in:
Tobias Manske 2021-03-21 17:53:35 +01:00
parent 4b45a7aeea
commit 8b7c390fda
Signed by: tobias
GPG Key ID: D5914DC71F2F9352
2 changed files with 3 additions and 12 deletions

View File

@ -1,4 +0,0 @@
FROM httpd:alpine
COPY ./docs/ /usr/local/apache2/htdocs/
RUN chown 1000 -R /usr/local/apache2/htdocs

11
Jenkinsfile vendored
View File

@ -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")
}
}