Merge pull request 'update command' (#8) from mitch into develop

Reviewed-on: https://gitea.mitchecp.com/gitea/test/pulls/8
This commit is contained in:
gitea 2026-07-06 23:52:50 +00:00
commit 22613b7898

View File

@ -17,15 +17,15 @@ steps:
environment:
SSH_KEY:
from_secret: MITCHECP
from_secret: MITCHECP_SSH_KEY
commands:
- apk add --no-cache openssh-client
- mkdir -p ~/.ssh
- echo "$SSH_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo "$SSH_KEY" > ~/.ssh/mitchecp.pem
- chmod 600 ~/.ssh/mitchecp.pem
- ssh-keyscan www.mitchecp.com >> ~/.ssh/known_hosts
- ssh ec2-user@www.mitchecp.com "cd /home/ec2-user && touch aaa.txt"
- ssh -i ~/.ssh/mitchecp.pem ec2-user@www.mitchecp.com "cd /home/ec2-user && touch aaa.txt"
when:
branch:
- develop