From fb4f5bb4e03931975a85b3ba0a3465be049c448d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20J=C3=A4ntsch?= Date: Wed, 5 Sep 2018 13:39:08 +0200 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e045d64..e79c5a2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,10 +4,11 @@ stages: - deploy - cleanup +image: node:8.11.4 + setup: - image: node:8.11.4 only: master - tag: prod + tags: prod script: - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null @@ -20,18 +21,16 @@ setup: - npm install --save build: - image: node:8.11.4 stage: build only: master - tag: prod + tags: prod script: - npm run build deploy: - image: node:8.11.4 stage: deploy only: master - tag: prod + tags: prod script: - export c=$PWD - ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $SSH_U@$SSH_S 'rm -rf $HOME/wbm/*' @@ -41,8 +40,7 @@ deploy: url: https://wbm.lucajaents.ch cleanup: - image: node:8.11.4 - tag: prod + tags: prod stage: cleanup script: - rm -rf ./*