This commit is contained in:
parent
ea56ba2149
commit
002064ee72
1 changed files with 2 additions and 2 deletions
|
@ -75,8 +75,8 @@ steps:
|
||||||
SSH_PRIVATE_KEY:
|
SSH_PRIVATE_KEY:
|
||||||
from_secret: SSH_PRIVATE_KEY
|
from_secret: SSH_PRIVATE_KEY
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p ~/.ssh
|
- apk update && apk add ssh
|
||||||
- chmod 700 ~/.ssh
|
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
|
||||||
- 'echo "${SSH_PRIVATE_KEY}" > ~/.ssh/deploy_key'
|
- 'echo "${SSH_PRIVATE_KEY}" > ~/.ssh/deploy_key'
|
||||||
- chmod 600 ~/.ssh/deploy_key
|
- chmod 600 ~/.ssh/deploy_key
|
||||||
- 'ssh -i ~/.ssh/deploy_key ${SSH_USER}@${SSH_HOST} ls -l /'
|
- 'ssh -i ~/.ssh/deploy_key ${SSH_USER}@${SSH_HOST} ls -l /'
|
||||||
|
|
Loading…
Reference in a new issue