cicd: expanded new CI template to test and acceptance
This commit is contained in:
parent
3c3467fcc1
commit
a9693513c0
@ -70,77 +70,44 @@ test1:
|
||||
when: manual
|
||||
|
||||
test2:
|
||||
extends: .ansible
|
||||
stage: integration
|
||||
environment:
|
||||
name: test2
|
||||
url: https://test2.startinblox.com
|
||||
before_script:
|
||||
- npm ci --cache .npm --prefer-offline --only=production
|
||||
script:
|
||||
- echo "$APP_CONFIG_TEST2" > config.json
|
||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
||||
- npm run build
|
||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* test2@astral.startinblox.com:~/front/
|
||||
only:
|
||||
- /^feature\/.*/
|
||||
when: manual
|
||||
tags:
|
||||
- deploy
|
||||
|
||||
test3:
|
||||
extends: .ansible
|
||||
stage: integration
|
||||
environment:
|
||||
name: test3
|
||||
url: https://test3.startinblox.com
|
||||
before_script:
|
||||
- npm ci --cache .npm --prefer-offline --only=production
|
||||
script:
|
||||
- echo "$APP_CONFIG_TEST3" > config.json
|
||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
||||
- sed -i -E 's/component-chat@([0-9]+).([0-9]+)/component-chat@beta/g' src/dependencies.pug
|
||||
- npm run build
|
||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* test3@astral.startinblox.com:~/front/
|
||||
only:
|
||||
- /^feature\/.*/
|
||||
when: manual
|
||||
tags:
|
||||
- deploy
|
||||
|
||||
stg1:
|
||||
extends: .ansible
|
||||
stage: acceptance
|
||||
environment:
|
||||
name: stg1
|
||||
url: https://stg1.startinblox.com
|
||||
before_script:
|
||||
- npm ci --cache .npm --prefer-offline --only=production
|
||||
script:
|
||||
- echo "$APP_CONFIG_STG1" > config.json
|
||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
||||
- npm run build
|
||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* stg1@astral.startinblox.com:~/front/
|
||||
only:
|
||||
- /^release\/.*/
|
||||
when: manual
|
||||
tags:
|
||||
- deploy
|
||||
|
||||
stg2:
|
||||
extends: .ansible
|
||||
stage: acceptance
|
||||
environment:
|
||||
name: stg2
|
||||
url: https://stg2.startinblox.com
|
||||
before_script:
|
||||
- npm ci --cache .npm --prefer-offline --only=production
|
||||
script:
|
||||
- echo "$APP_CONFIG_STG2" > config.json
|
||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
||||
- npm run build
|
||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* stg2@astral.startinblox.com:~/front/
|
||||
only:
|
||||
- /^release\/.*/
|
||||
when: manual
|
||||
tags:
|
||||
- deploy
|
||||
|
||||
## RELEASE TAGGING ##
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user