From 3ced7b2bfcdc40556c4b51590e5e239b805cdbbb Mon Sep 17 00:00:00 2001 From: maren Date: Sun, 7 Jan 2024 20:43:30 -0500 Subject: [PATCH] lazygit --- .woodpecker.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 1e8a53b..361f5fe 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -16,16 +16,17 @@ steps: image: alpine:latest secrets: [ deploy_ssh_key ] commands: - - ls - apk add openssh - mkdir ~/.ssh - 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 - chmod -R u=rwX,go= ~/.ssh - # - rsync -rPvce ssh --chmod=ugo=rwX --no-times public/ www-fediparty@fediverse.party:www/ - - scp -r dist deploy@turtle.hup.is:~/ - - scp -r source deploy@turtle.hup.is:~/ - - scp -r static deploy@turtle.hup.is:~/ + - mkdir oxaliq + - mv dist oxaliq/. + - mv source oxaliq/. + - mv static oxaliq/. + - scp -r oxaliq deploy@turtle.hup.is:~/ + - ssh deploy@turtle.hup.is 'sudo rm /srv/oxaliq || true && sudo mv oxaliq /srv/. && sudo systemctl restart sorreldotdev.service' when: # Only try to deploy if previous step is successful status: success