maren/add-ci #2

Closed
stillgreenmoss wants to merge 21 commits from maren/add-ci into main
Showing only changes of commit ff4ef29b0c - Show all commits

View file

@ -13,7 +13,17 @@ steps:
- raco exe sorrel.dev.rkt
- raco distribute dist sorrel.dev
- ls
a-test-step:
image: debian:bookworm
deploy:
image: alpine:latest
secrets: [ deploy_ssh_key ]
commands:
- echo "Testing.."
- apk add rsync openssh
- mkdir ~/.ssh
- printf '%s\n' "$${DEPLOY_SSH_KEY}" > ~/.ssh/deploy_ssh_key
- printf "Host turtle.hup.is\n\tIdentityFile ~/.ssh/deploy_ssh_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@fediverse.party:www/
- ssh deploy@turtle.hup.is "ls"
when:
# Only try to deploy if previous step is successful
status: success