test #4

Merged
juan merged 10 commits from test into master 2022-05-18 16:28:23 +00:00
2 changed files with 6 additions and 3 deletions
Showing only changes of commit 7e398059dc - Show all commits

6
Jenkinsfile vendored
View File

@ -16,11 +16,13 @@ pipeline {
switch (env.BRANCH_NAME) {
case 'master':
env.NODE_ENV = 'production'
env.REPLICAS = 3
env.MAIN_REPLICAS = 3
env.CRON_REPLICAS = 1
break
case 'test':
env.NODE_ENV = 'test'
env.REPLICAS = 1
env.MAIN_REPLICAS = 1
env.CRON_REPLICAS = 0
break
}
}

View File

@ -17,7 +17,7 @@ services:
- /mnt/appdata/image:/var/lib/hedera-web/image-db
- /mnt/appdata/vn-access:/var/lib/hedera-web/vn-access
deploy:
replicas: ${REPLICAS:?}
replicas: ${MAIN_REPLICAS:?}
placement:
constraints:
- node.role == worker
@ -31,6 +31,7 @@ services:
- /mnt/appdata:/mnt/storage
- /mnt/appdata/image:/var/lib/hedera-web/image-db
deploy:
replicas: ${CRON_REPLICAS:?}
placement:
constraints:
- node.role == worker