This commit is contained in:
parent
73d103f562
commit
ea56ba2149
1 changed files with 3 additions and 0 deletions
|
@ -75,7 +75,10 @@ steps:
|
||||||
SSH_PRIVATE_KEY:
|
SSH_PRIVATE_KEY:
|
||||||
from_secret: SSH_PRIVATE_KEY
|
from_secret: SSH_PRIVATE_KEY
|
||||||
commands:
|
commands:
|
||||||
|
- 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
|
||||||
- 'ssh -i ~/.ssh/deploy_key ${SSH_USER}@${SSH_HOST} ls -l /'
|
- 'ssh -i ~/.ssh/deploy_key ${SSH_USER}@${SSH_HOST} ls -l /'
|
||||||
|
|
||||||
# volumes:
|
# volumes:
|
||||||
|
|
Loading…
Reference in a new issue