From 16c34a0bf74f03059bf8ed0386aef4f411cc6061 Mon Sep 17 00:00:00 2001 From: thisfro Date: Mon, 27 Dec 2021 15:20:05 +0100 Subject: [PATCH] Pull newly built image first --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9b73601..95cbe40 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -32,6 +32,8 @@ node { } stage('Deploy staging') { - sh 'docker-compose --project-directory /opt/containers/pflaenz.li --file /opt/containers/pflaenz.li/docker-compose.yml up -d' + sh 'cd /opt/containers/pflaenz.li' + sh 'docker-compose pull' + sh 'docker-compose up -d' } } \ No newline at end of file