cicd: used ansible template
This commit is contained in:
parent
86aa231b2d
commit
3c3467fcc1
@ -54,23 +54,20 @@ test:e2e:
|
||||
|
||||
## VALIDATION ##
|
||||
|
||||
include:
|
||||
project: infra/gitlab
|
||||
ref: master
|
||||
file: templates/deploy.ci.yml
|
||||
|
||||
test1:
|
||||
extends: .ansible
|
||||
stage: integration
|
||||
environment:
|
||||
name: test1
|
||||
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:
|
||||
- /^feature\/.*/
|
||||
when: manual
|
||||
tags:
|
||||
- deploy
|
||||
|
||||
test2:
|
||||
stage: integration
|
||||
|
Loading…
Reference in New Issue
Block a user