ci: deploy to new server

This commit is contained in:
Simon Ser 2022-07-09 12:26:39 +02:00
parent e4ebf5eb80
commit 1bcd9d3607

View file

@ -5,7 +5,7 @@ packages:
sources: sources:
- https://git.sr.ht/~emersion/gamja - https://git.sr.ht/~emersion/gamja
secrets: secrets:
- 5874ac5a-905e-4596-a117-fed1401c60ce # deploy SSH key - 77c7956b-003e-44f7-bb5c-2944b2047654 # deploy SSH key
tasks: tasks:
- setup: | - setup: |
cd gamja cd gamja
@ -16,4 +16,4 @@ tasks:
[ "$(git rev-parse HEAD)" = "$(git rev-parse origin/master)" ] || complete-build [ "$(git rev-parse HEAD)" = "$(git rev-parse origin/master)" ] || complete-build
rsync --rsh="ssh -o StrictHostKeyChecking=no" -rP \ rsync --rsh="ssh -o StrictHostKeyChecking=no" -rP \
--delete --exclude=config.json \ --delete --exclude=config.json \
. deploy@kyouko.emersion.fr:/srv/http/gamja . deploy@sheeta.emersion.fr:/srv/http/gamja