maren/add-ci #3

Merged
oxaliq merged 21 commits from maren/add-ci into main 2024-01-08 02:13:22 +00:00
Showing only changes of commit 93b396075b - Show all commits

View file

@ -6,8 +6,8 @@ steps:
image: debian:bookworm image: debian:bookworm
commands: commands:
- apt update - apt update
- rm -rf data/ # - rm -rf data/
- rm -rf in-progress # - rm -rf in-progress
- apt -yq install racket ca-certificates - apt -yq install racket ca-certificates
- yes Y | raco pkg install --no-docs csv-reading - yes Y | raco pkg install --no-docs csv-reading
- raco exe sorrel.dev.rkt - raco exe sorrel.dev.rkt
@ -17,13 +17,13 @@ steps:
secrets: [ deploy_ssh_key ] secrets: [ deploy_ssh_key ]
commands: commands:
- ls - ls
- apk add rsync openssh - apk add openssh
- mkdir ~/.ssh - mkdir ~/.ssh
- printf '%s\n' "$${DEPLOY_SSH_KEY}" > ~/.ssh/deploy_ssh_key - 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 - 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 - chmod -R u=rwX,go= ~/.ssh
# - rsync -rPvce ssh --chmod=ugo=rwX --no-times public/ www-fediparty@fediverse.party:www/ # - rsync -rPvce ssh --chmod=ugo=rwX --no-times public/ www-fediparty@fediverse.party:www/
- ssh deploy@turtle.hup.is 'ls -la' - scp sorrel.dev deploy@turtle.hup.is:~/
when: when:
# Only try to deploy if previous step is successful # Only try to deploy if previous step is successful
status: success status: success