diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e79c5a2..e660500 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,7 +8,8 @@ image: node:8.11.4 setup: only: master - tags: prod + tags: + - prod script: - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null @@ -23,14 +24,16 @@ setup: build: stage: build only: master - tags: prod + tags: + - prod script: - npm run build deploy: stage: deploy only: master - tags: prod + tags: + - prod script: - export c=$PWD - ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $SSH_U@$SSH_S 'rm -rf $HOME/wbm/*' @@ -40,7 +43,8 @@ deploy: url: https://wbm.lucajaents.ch cleanup: - tags: prod + tags: + - prod stage: cleanup script: - rm -rf ./*