Compare commits
2 Commits
2caac04c2a
...
92b2255a51
| Author | SHA1 | Date | |
|---|---|---|---|
| 92b2255a51 | |||
| 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