More changes
This commit is contained in:
14
.github/workflows/deploy.yml
vendored
14
.github/workflows/deploy.yml
vendored
@ -22,12 +22,12 @@ jobs:
|
||||
- name: Setup SSH
|
||||
shell: bash
|
||||
run: |
|
||||
eval `ssh-agent -s`
|
||||
mkdir -p /home/runner/.ssh/
|
||||
touch /home/runner/.ssh/id_rsa
|
||||
echo -e "${{secrets.SSH_KEY}}" > /home/runner/.ssh/id_rsa
|
||||
chmod 700 /home/runner/.ssh/id_rsa
|
||||
ssh-keygen -R ${{secrets.SSH_HOST}}
|
||||
eval `ssh-agent -s`
|
||||
mkdir -p /home/runner/.ssh/
|
||||
touch /home/runner/.ssh/id_rsa
|
||||
echo -e "${{secrets.SSH_KEY}}" > /home/runner/.ssh/id_rsa
|
||||
chmod 700 /home/runner/.ssh/id_rsa
|
||||
ssh-keyscan -t rsa,dsa,ecdsa,ed25519 ${{secrets.SSH_HOST}} >> /home/runner/.ssh/known_hosts
|
||||
|
||||
- name: SSH to the Prod env
|
||||
shell: bash
|
||||
@ -35,4 +35,4 @@ jobs:
|
||||
ssh -tt -o StrictHostKeyChecking=no gitea@${{secrets.SSH_HOST}}
|
||||
whoiam
|
||||
|
||||
# ssh-keyscan -t rsa,dsa,ecdsa,ed25519 ${{secrets.SSH_HOST}} >> /home/runner/.ssh/known_hosts
|
||||
#
|
||||
|
Reference in New Issue
Block a user