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