feat: deploy to dev

This commit is contained in:
Tomáš Mládek 2022-07-26 19:15:14 +02:00
parent 7a84ef1b8a
commit 258c812383

View file

@ -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