Enable lilium for production
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2022-10-20 13:47:50 +02:00
parent c346ce30e6
commit 6f38c7e4bb
2 changed files with 8 additions and 8 deletions

14
Jenkinsfile vendored
View File

@ -13,13 +13,13 @@ pipeline {
steps {
script {
switch (env.BRANCH_NAME) {
// case 'master':
// env.NODE_ENV = 'production'
// env.BACK_REPLICAS = 1
// break
case 'master':
env.NODE_ENV = 'production'
env.FRONT_REPLICAS = 2
break
case 'test':
env.NODE_ENV = 'test'
env.BACK_REPLICAS = 1
env.FRONT_REPLICAS = 1
break
}
}
@ -58,7 +58,7 @@ pipeline {
stage('Build') {
when { anyOf {
branch 'test'
// branch 'master'
branch 'master'
}}
environment {
CREDENTIALS = credentials('docker-registry')
@ -73,7 +73,7 @@ pipeline {
stage('Deploy') {
when { anyOf {
branch 'test'
// branch 'master'
branch 'master'
}}
environment {
DOCKER_HOST = "${env.SWARM_HOST}"

View File

@ -8,7 +8,7 @@ services:
ports:
- 4000
deploy:
replicas: 2
replicas: ${FRONT_REPLICAS:?}
placement:
constraints:
- node.role == worker