Enable lilium for production
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
This commit is contained in:
parent
c346ce30e6
commit
6f38c7e4bb
|
@ -13,13 +13,13 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
switch (env.BRANCH_NAME) {
|
switch (env.BRANCH_NAME) {
|
||||||
// case 'master':
|
case 'master':
|
||||||
// env.NODE_ENV = 'production'
|
env.NODE_ENV = 'production'
|
||||||
// env.BACK_REPLICAS = 1
|
env.FRONT_REPLICAS = 2
|
||||||
// break
|
break
|
||||||
case 'test':
|
case 'test':
|
||||||
env.NODE_ENV = 'test'
|
env.NODE_ENV = 'test'
|
||||||
env.BACK_REPLICAS = 1
|
env.FRONT_REPLICAS = 1
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,7 @@ pipeline {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
when { anyOf {
|
when { anyOf {
|
||||||
branch 'test'
|
branch 'test'
|
||||||
// branch 'master'
|
branch 'master'
|
||||||
}}
|
}}
|
||||||
environment {
|
environment {
|
||||||
CREDENTIALS = credentials('docker-registry')
|
CREDENTIALS = credentials('docker-registry')
|
||||||
|
@ -73,7 +73,7 @@ pipeline {
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
when { anyOf {
|
when { anyOf {
|
||||||
branch 'test'
|
branch 'test'
|
||||||
// branch 'master'
|
branch 'master'
|
||||||
}}
|
}}
|
||||||
environment {
|
environment {
|
||||||
DOCKER_HOST = "${env.SWARM_HOST}"
|
DOCKER_HOST = "${env.SWARM_HOST}"
|
||||||
|
|
|
@ -8,7 +8,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 4000
|
- 4000
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 2
|
replicas: ${FRONT_REPLICAS:?}
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.role == worker
|
- node.role == worker
|
Loading…
Reference in New Issue