ssh_key
This commit is contained in:
parent
ef61262178
commit
7f47ce1876
@ -17,11 +17,13 @@ steps:
|
||||
|
||||
environment:
|
||||
SSH_KEY:
|
||||
from_secret: mitchecp
|
||||
from_secret: MITCHECP
|
||||
|
||||
commands:
|
||||
- apk add --no-cache openssh-client
|
||||
- mkdir -p ~/.ssh
|
||||
- echo "$SSH_KEY" > ~/.ssh/id_rsa
|
||||
- chmod 600 ~/.ssh/id_rsa
|
||||
- ssh-keyscan www.mitchecp.com >> ~/.ssh/known_hosts
|
||||
- ssh ec2-user@www.mitchecp.com "cd /home/ec2-user && touch aaa.txt"
|
||||
when:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user