Test branch
gitea/worker-time-control/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2021-10-21 13:36:27 +02:00
parent 269c40df15
commit 5ce6c4834d
2 changed files with 3 additions and 2 deletions

3
Jenkinsfile vendored
View File

@ -4,6 +4,7 @@ pipeline {
agent any
environment {
PROJECT_NAME = 'worker-time-control'
STACK_NAME = "${env.PROJECT_NAME}-${env.BRANCH_NAME}"
}
stages {
stage('Checkout') {
@ -24,7 +25,7 @@ pipeline {
DOCKER_HOST = "${env.SWARM_HOST}"
}
steps {
sh "docker stack deploy --with-registry-auth --prune --compose-file docker-compose.yml ${env.PROJECT_NAME}"
sh "docker stack deploy --with-registry-auth --prune --compose-file docker-compose.yml ${env.STACK_NAME}"
}
}
}

View File

@ -16,4 +16,4 @@ services:
configs:
config:
external: true
name: worker-time-control_config
name: worker-time-control_${BRANCH_NAME:?}_config