Test branch #1
|
@ -4,6 +4,7 @@ pipeline {
|
||||||
agent any
|
agent any
|
||||||
environment {
|
environment {
|
||||||
PROJECT_NAME = 'worker-time-control'
|
PROJECT_NAME = 'worker-time-control'
|
||||||
|
STACK_NAME = "${env.PROJECT_NAME}-${env.BRANCH_NAME}"
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
|
@ -24,7 +25,7 @@ pipeline {
|
||||||
DOCKER_HOST = "${env.SWARM_HOST}"
|
DOCKER_HOST = "${env.SWARM_HOST}"
|
||||||
}
|
}
|
||||||
steps {
|
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}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,4 +16,4 @@ services:
|
||||||
configs:
|
configs:
|
||||||
config:
|
config:
|
||||||
external: true
|
external: true
|
||||||
name: worker-time-control_config
|
name: worker-time-control_${BRANCH_NAME:?}_config
|
||||||
|
|
Loading…
Reference in New Issue