cicd: used ansible template
This commit is contained in:
parent
86aa231b2d
commit
3c3467fcc1
@ -54,23 +54,20 @@ test:e2e:
|
|||||||
|
|
||||||
## VALIDATION ##
|
## VALIDATION ##
|
||||||
|
|
||||||
|
include:
|
||||||
|
project: infra/gitlab
|
||||||
|
ref: master
|
||||||
|
file: templates/deploy.ci.yml
|
||||||
|
|
||||||
test1:
|
test1:
|
||||||
|
extends: .ansible
|
||||||
stage: integration
|
stage: integration
|
||||||
environment:
|
environment:
|
||||||
name: test1
|
name: test1
|
||||||
url: https://test1.startinblox.com
|
url: https://test1.startinblox.com
|
||||||
before_script:
|
|
||||||
- npm ci --cache .npm --prefer-offline --only=production
|
|
||||||
script:
|
|
||||||
- echo "$APP_CONFIG_TEST1" > 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/* test1@astral.startinblox.com:~/front/
|
|
||||||
only:
|
only:
|
||||||
- /^feature\/.*/
|
- /^feature\/.*/
|
||||||
when: manual
|
when: manual
|
||||||
tags:
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
test2:
|
test2:
|
||||||
stage: integration
|
stage: integration
|
||||||
|
Loading…
Reference in New Issue
Block a user