oxaliq.net/.woodpecker/build-and-deploy.yml
maren ac32443f1c
All checks were successful
ci/woodpecker/push/build-and-deploy Pipeline was successful
move ssh setup to script
we want to see the output of the deploy steps in the UI
doesn't happen if it's a scipt
not sure this will work
2024-01-08 09:48:18 -05:00

25 lines
532 B
YAML

when:
branch:
exclude: [ main ]
steps:
build:
image: debian:bookworm-slim
commands:
- apt update
- 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:
- ./.woodpecker/ssh.sh
- ./.woodpecker/deploy.sh
when:
# Only try to deploy if previous step is successful
status: success