diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index b0eb1bb..0000000 --- a/Dockerfile +++ /dev/null @@ -1,4 +0,0 @@ -FROM httpd:alpine -COPY ./docs/ /usr/local/apache2/htdocs/ -RUN chown 1000 -R /usr/local/apache2/htdocs - diff --git a/Jenkinsfile b/Jenkinsfile index 58898f2..6b59320 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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") } }