oxaliq.net/.woodpecker.yml

30 lines
964 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
2024-01-08 01:15:39 +00:00
# - rm -rf data/
# - rm -rf in-progress
2024-01-07 23:21:54 +00:00
- 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 01:15:39 +00:00
- apk add openssh
2024-01-08 00:40:23 +00:00
- 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 01:15:39 +00:00
- scp sorrel.dev deploy@turtle.hup.is:~/
2024-01-08 00:40:23 +00:00
when:
# Only try to deploy if previous step is successful
status: success