From ebe46c6b6fca3b2b30fe99ccd712c062a5551be9 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Pasquier Date: Tue, 24 Nov 2020 12:31:41 +0000 Subject: [PATCH] cicd: montpellier --- .gitlab-ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2b8749a..c87be84 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -912,5 +912,23 @@ latreso: only: - master when: manual + tags: + - deploy + +montpellier: + stage: deployment + environment: + name: montpellier + url: https://app.montpellier.happy-dev.fr + before_script: + - npm ci --cache .npm --prefer-offline --only=production + script: + - echo "$APP_CONFIG_MONTPELLIER" > 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/* montpellier@ssh-montpellier.happy-dev.fr:~/front/ + only: + - master + when: manual tags: - deploy \ No newline at end of file