From d9098182d42d37b877783f5b9d1a172ce154ad3f Mon Sep 17 00:00:00 2001 From: Jannis Portmann Date: Sat, 25 Dec 2021 14:33:17 +0100 Subject: [PATCH] New staging deployment --- Jenkinsfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 69b94aa..38873ab 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,6 +24,13 @@ node { } } + stage('Push image') { + docker.withRegistry('https://hub.thisfro.ch', 'git') { + app.push("${env.BUILD_NUMBER}") + app.push("latest") + } + } + stage('Deploy staging') { sh 'docker-compose --project-directory /opt/containers/pflaenz.li --file /opt/containers/pflaenz.li/docker-compose.yml up -d' }