cicd: used ansible template

This commit is contained in:
plup 2021-01-14 13:34:33 +01:00
parent 86aa231b2d
commit 3c3467fcc1

View File

@ -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