feat: deploy to dev
This commit is contained in:
parent
7a84ef1b8a
commit
258c812383
1 changed files with 15 additions and 0 deletions
|
@ -16,6 +16,21 @@ build site:
|
||||||
paths:
|
paths:
|
||||||
- dist
|
- dist
|
||||||
|
|
||||||
|
deploy dev:
|
||||||
|
image: instrumentisto/rsync-ssh
|
||||||
|
stage: deploy
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- develop
|
||||||
|
script:
|
||||||
|
- mkdir ~/.ssh
|
||||||
|
- echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
|
||||||
|
- chmod 644 ~/.ssh/known_hosts
|
||||||
|
- eval $(ssh-agent -s)
|
||||||
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||||
|
- rsync -vr -e "ssh -p ${SSH_PORT}" dist/ "${DEPLOY_DEST}/dev/"
|
||||||
|
|
||||||
|
|
||||||
deploy site:
|
deploy site:
|
||||||
image: instrumentisto/rsync-ssh
|
image: instrumentisto/rsync-ssh
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
Loading…
Reference in a new issue