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
|
when: manual
|
||||||
|
|
||||||
test2:
|
test2:
|
||||||
|
extends: .ansible
|
||||||
stage: integration
|
stage: integration
|
||||||
environment:
|
environment:
|
||||||
name: test2
|
name: test2
|
||||||
url: https://test2.startinblox.com
|
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:
|
only:
|
||||||
- /^feature\/.*/
|
- /^feature\/.*/
|
||||||
when: manual
|
when: manual
|
||||||
tags:
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
test3:
|
test3:
|
||||||
|
extends: .ansible
|
||||||
stage: integration
|
stage: integration
|
||||||
environment:
|
environment:
|
||||||
name: test3
|
name: test3
|
||||||
url: https://test3.startinblox.com
|
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:
|
only:
|
||||||
- /^feature\/.*/
|
- /^feature\/.*/
|
||||||
when: manual
|
when: manual
|
||||||
tags:
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
stg1:
|
stg1:
|
||||||
|
extends: .ansible
|
||||||
stage: acceptance
|
stage: acceptance
|
||||||
environment:
|
environment:
|
||||||
name: stg1
|
name: stg1
|
||||||
url: https://stg1.startinblox.com
|
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:
|
only:
|
||||||
- /^release\/.*/
|
- /^release\/.*/
|
||||||
when: manual
|
when: manual
|
||||||
tags:
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
stg2:
|
stg2:
|
||||||
|
extends: .ansible
|
||||||
stage: acceptance
|
stage: acceptance
|
||||||
environment:
|
environment:
|
||||||
name: stg2
|
name: stg2
|
||||||
url: https://stg2.startinblox.com
|
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:
|
only:
|
||||||
- /^release\/.*/
|
- /^release\/.*/
|
||||||
when: manual
|
when: manual
|
||||||
tags:
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
## RELEASE TAGGING ##
|
## RELEASE TAGGING ##
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user