maren/more-ci-work #4

Merged
oxaliq merged 7 commits from maren/more-ci-work into main 2024-01-08 15:23:09 +00:00
2 changed files with 8 additions and 5 deletions
Showing only changes of commit ac32443f1c - Show all commits

View file

@ -18,11 +18,7 @@ steps:
secrets: secrets:
- deploy_ssh_key - deploy_ssh_key
commands: commands:
- apk add openssh-client - ./.woodpecker/ssh.sh
- 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 - ./.woodpecker/deploy.sh
when: when:
# Only try to deploy if previous step is successful # Only try to deploy if previous step is successful

7
.woodpecker/ssh.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh -e
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