feat: deploy to dev

wip/tools
Tomáš Mládek 2022-07-26 19:15:14 +02:00
parent 7a84ef1b8a
commit 258c812383
1 changed files with 15 additions and 0 deletions

View File

@ -16,6 +16,21 @@ build site:
paths:
- 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:
image: instrumentisto/rsync-ssh
stage: deploy