Deploy to correct server
This commit is contained in:
parent
01d7122712
commit
0d6a1d577f
|
@ -32,9 +32,9 @@ pipeline:
|
|||
- apk add rsync openssh
|
||||
- mkdir ~/.ssh
|
||||
- printf '%s\n' "$${DEPLOY_KEY}" > ~/.ssh/deploy_key
|
||||
- printf "Host alexandria.debiania.in.ua\n\tIdentityFile ~/.ssh/deploy_key\n\tUserKnownHostsFile=/dev/null\n\tStrictHostKeyChecking=no\n" > ~/.ssh/config
|
||||
- printf "Host fediverse.party\n\tIdentityFile ~/.ssh/deploy_key\n\tUserKnownHostsFile=/dev/null\n\tStrictHostKeyChecking=no\n" > ~/.ssh/config
|
||||
- chmod -R u=rwX,go= ~/.ssh
|
||||
- rsync -rPvce ssh --chmod=ugo=rwX --no-times public/ www-fediparty@alexandria.debiania.in.ua:www/
|
||||
- rsync -rPvce ssh --chmod=ugo=rwX --no-times public/ www-fediparty@fediverse.party:www/
|
||||
when:
|
||||
# Only try to deploy if previous step is successful
|
||||
status: success
|
||||
|
|
Loading…
Reference in New Issue