Deploy only after publish

This commit is contained in:
Jan Tuomi
2017-09-15 18:41:58 +03:00
parent f6afacb93f
commit ff778d15ee
+6 -3
View File
@@ -11,6 +11,7 @@ variables:
stages: stages:
- test - test
- lint - lint
- publish
- deploy - deploy
test: test:
@@ -39,8 +40,8 @@ eslint:
- npm install -g eslint - npm install -g eslint
- eslint . - eslint .
build: publish:
stage: deploy stage: publish
image: docker:latest image: docker:latest
only: only:
- develop - develop
@@ -56,8 +57,10 @@ deploy:
environment: environment:
name: dev name: dev
url: http://web.sik.party url: http://web.sik.party
dependencies:
- publish
before_script: before_script:
- apt-get install -y openssh-client - apk add --update openssh
- ssh -V - ssh -V
script: script:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh