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:
- test
- lint
- publish
- deploy
test:
@@ -39,8 +40,8 @@ eslint:
- npm install -g eslint
- eslint .
build:
stage: deploy
publish:
stage: publish
image: docker:latest
only:
- develop
@@ -56,8 +57,10 @@ deploy:
environment:
name: dev
url: http://web.sik.party
dependencies:
- publish
before_script:
- apt-get install -y openssh-client
- apk add --update openssh
- ssh -V
script:
- mkdir -p ~/.ssh