Update .gitlab-ci.yml
This commit is contained in:
parent
8b0748b05a
commit
0ac4e0ed3c
|
@ -45,8 +45,12 @@ deploy_staging:
|
||||||
variables:
|
variables:
|
||||||
SHELL: "/bin/sh"
|
SHELL: "/bin/sh"
|
||||||
script:
|
script:
|
||||||
- echo "deploy all the things..."
|
- apk --no-cache --upgrade add openssh-client rsync
|
||||||
- ls -la public/
|
- 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
|
when: on_success
|
||||||
environment:
|
environment:
|
||||||
name: staging
|
name: staging
|
||||||
|
|
Loading…
Reference in a new issue