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