From 61c853ee54c9b7a27f69748fe2b33ec848a78721 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Pasquier Date: Thu, 11 Jun 2020 18:26:43 +0000 Subject: [PATCH] cicd: add hubl community --- .gitlab-ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5884a93..7175ec8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -264,3 +264,21 @@ volumes: when: manual tags: - deploy + +volumes: + stage: deployment + environment: + name: community-hubl + url: https://community.hubl.world + before_script: + - npm ci --cache .npm --prefer-offline --only=production + script: + - echo "$APP_CONFIG_HUBL_COMMUNITY" > 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/* community-hubl@astral.startinblox.com:~/front/ + only: + - master + when: manual + tags: + - deploy