Merge pull request 'ssh_key' (#7) from mitch into develop

Reviewed-on: https://gitea.mitchecp.com/gitea/test/pulls/7
This commit is contained in:
gitea 2026-07-06 23:45:10 +00:00
commit 92b2255a51

View File

@ -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: