From 5ffe0b63ab931eb29ad2116b30daef83c9e1d1db Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Pasquier Date: Wed, 2 Sep 2020 15:29:27 +0000 Subject: [PATCH] cicd: add georgetown-uni --- .gitlab-ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2069f20..abdd685 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -552,3 +552,21 @@ apidays: when: manual tags: - deploy + +georgetownuni: + stage: deployment + environment: + name: georgetownuni + url: https://georgetown-uni.hubl.world + before_script: + - npm ci --cache .npm --prefer-offline --only=production + script: + - echo "$APP_CONFIG_GEORGETOWNUNI" > 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/* georgetown-uni@astral.startinblox.com:~/front/ + only: + - master + when: manual + tags: + - deploy