2024-01-08 15:23:08 +00:00
|
|
|
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
|
2024-01-15 02:06:09 +00:00
|
|
|
- raco exe oxaliq.net.rkt
|
|
|
|
- raco distribute dist oxaliq.net
|
2024-01-08 15:23:08 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
image: alpine:latest
|
|
|
|
secrets:
|
|
|
|
- deploy_ssh_key
|
|
|
|
commands:
|
|
|
|
- echo "SETTING UP SSH"
|
|
|
|
- apk add openssh-client
|
|
|
|
- mkdir -p $HOME/.ssh
|
2024-04-17 00:40:53 +00:00
|
|
|
- ssh-keyscan -t ed25519 oxaliq.net >> $HOME/.ssh/known_hosts
|
|
|
|
- echo "$oxaliq_deploy_ssh" > $HOME/.ssh/id_ed25519
|
2024-01-08 15:23:08 +00:00
|
|
|
- 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
|