restore lengthier way that worked
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
Kiara Grouwstra 2022-10-16 20:47:59 +02:00
parent a41e16105c
commit e60a63dbc8
1 changed files with 7 additions and 2 deletions

View File

@ -4,6 +4,11 @@ pipeline:
image: alpine:latest
commands:
- apk add openssh openrc
- echo "${SSH_KEY}" | ssh-add -
- ssh -o StrictHostKeyChecking=no cd@crm.bij1.net rundeploy
- mkdir -p ~/.ssh/
- |
cat > ~/.ssh/id_rsa <<EOF
$SSH_KEY
EOF
- chmod 600 ~/.ssh/id_rsa
- ssh -o StrictHostKeyChecking=no deploy@crm.bij1.net rundeploy
secrets: [ ssh_key ]