From 6459e73e8bebf2fa795715ef6de2e10129a40a41 Mon Sep 17 00:00:00 2001 From: plup <plup@plup.io> Date: Wed, 20 Nov 2019 21:05:23 +0100 Subject: [PATCH] cicd: added gitlab-ci --- .gitlab-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..c6e9d647 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,17 @@ +image: node + +stages: + - deploy + +deploy_staging: + stage: deploy + environment: staging + script: + - npm install + - echo $APP_CONFIG + - echo $APP_CONFIG > config.json + - npm run build + - echo $SSH_PRIAVTE_KEY > gitlab.key + - scp -i gitlab.key -r build/* test-paris@ssh-test-paris.happy-dev.fr:~/staging/www/ + only: + - feat/manager_deploy -- GitLab