Update .gitlab-ci.yml

This commit is contained in:
XenGi 2018-08-16 22:53:05 +02:00
parent 8b0748b05a
commit 0ac4e0ed3c

View file

@ -45,8 +45,12 @@ deploy_staging:
variables:
SHELL: "/bin/sh"
script:
- echo "deploy all the things..."
- ls -la public/
- apk --no-cache --upgrade add openssh-client rsync
- mkdir -p ~/.ssh
- eval $(ssh-agent -s)
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- ssh-add <(echo "$PRIVATE_KEY")
- rsync -e "ssh -l deploy -p 31337" -av public/ 195.54.164.87:s
when: on_success
environment:
name: staging