maren/more-ci-work #4
2 changed files with 8 additions and 5 deletions
|
@ -18,11 +18,7 @@ steps:
|
|||
secrets:
|
||||
- deploy_ssh_key
|
||||
commands:
|
||||
- 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
|
||||
- ./.woodpecker/ssh.sh
|
||||
- ./.woodpecker/deploy.sh
|
||||
when:
|
||||
# Only try to deploy if previous step is successful
|
7
.woodpecker/ssh.sh
Executable file
7
.woodpecker/ssh.sh
Executable 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
|
Loading…
Reference in a new issue