From 2497b502adb3173bdb310eb92b81c44be73fe29a Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Pasquier Date: Wed, 1 Apr 2020 16:08:27 +0000 Subject: [PATCH] cicd: fix alpha and add community --- .gitlab-ci.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 975c459..fe0b5c3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -99,7 +99,7 @@ stg2: alpha: stage: deployment environment: - name: paris + name: alpha url: https://alpha.happy-dev.fr script: - echo "$APP_CONFIG_ALPHA" > config.json @@ -113,6 +113,23 @@ alpha: tags: - deploy +community: + stage: deployment + environment: + name: community + url: https://community.startinblox.com + script: + - echo "$APP_CONFIG_COMMUNITY" > config.json + - echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key + - npm install + - npm run build + - scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* community@astral.startinblox.com:~/front/ + only: + - master + when: manual + tags: + - deploy + etuc: stage: deployment environment: