oxaliq.net/.woodpecker/.woodpecker.yml
maren e703c27d4b
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
do ci better hopefully
2024-01-08 09:27:22 -05:00

29 lines
729 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:
- apk add openssh-client
- mkdir -p $HOME/.ssh
- ssh-keyscan -t ed25519 turtle.hup.is >> $HOME/.ssh/known_hosts
- echo "$DEPLOY_SSH_KEY" > $HOME/.ssh/id_ed25519
- chmod 0600 $HOME/.ssh/id_ed25519
- ./.woodpecker/deploy.sh
when:
# Only try to deploy if previous step is successful
status: success