oxaliq.net/.woodpecker.yml
maren 8b46222ecd
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
lazygit
2024-01-07 20:27:30 -05:00

31 lines
1 KiB
YAML

when:
branch:
exclude: [ main ]
steps:
build:
image: debian:bookworm-slim
commands:
- apt update
# - rm -rf data/
# - rm -rf in-progress
- apt -yq install racket ca-certificates
- yes Y | raco pkg install --no-docs csv-reading
- raco exe sorrel.dev.rkt
- raco distribute dist sorrel.dev
deploy:
image: alpine:latest
secrets: [ deploy_ssh_key ]
commands:
- ls
- apk add 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/
- scp -r dist deploy@turtle.hup.is:~/
- scp -r source deploy@turtle.hup.is:~/
- scp -r static deploy@turtle.hup.is:~/
when:
# Only try to deploy if previous step is successful
status: success