oxaliq.net/.woodpecker.yml

30 lines
961 B
YAML
Raw Normal View History

when:
branch:
exclude: [ main ]
2023-12-18 00:25:26 +00:00
steps:
build:
2024-01-07 22:49:32 +00:00
image: debian:bookworm
2023-12-18 00:25:26 +00:00
commands:
2024-01-07 23:21:54 +00:00
- 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
2024-01-08 00:40:23 +00:00
deploy:
image: alpine:latest
secrets: [ deploy_ssh_key ]
2023-12-18 00:25:26 +00:00
commands:
2024-01-08 00:51:36 +00:00
- ls
2024-01-08 00:40:23 +00:00
- 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/
2024-01-08 00:49:49 +00:00
- ssh deploy@turtle.hup.is 'ls -la'
2024-01-08 00:40:23 +00:00
when:
# Only try to deploy if previous step is successful
status: success