oxaliq.net/.woodpecker/build-and-deploy.yml
oxaliq 0516ba6985
All checks were successful
ci/woodpecker/push/build-and-deploy Pipeline was successful
point ci scripts to the farm
2024-04-16 20:48:01 -04:00

32 lines
829 B
YAML

when:
branch:
include: [ 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 oxaliq.net.rkt
- raco distribute dist oxaliq.net
deploy:
image: alpine:latest
secrets:
- oxaliq_deploy_ssh
commands:
- echo "SETTING UP SSH"
- apk add openssh-client
- mkdir -p $HOME/.ssh
- ssh-keyscan -t ed25519 oxaliq.net >> $HOME/.ssh/known_hosts
- echo "$oxaliq_deploy_ssh" > $HOME/.ssh/id_ed25519
- chmod 0600 $HOME/.ssh/id_ed25519
- echo "SSH SETUP DONE"
- echo "RUNNING DEPLOY SCRIPT"
- ./.woodpecker/deploy.sh
when:
# Only try to deploy if previous step is successful
status: success