More changes
This commit is contained in:
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -12,6 +12,7 @@ on:
|
|||||||
- 'README.md'
|
- 'README.md'
|
||||||
# - '.github/**'
|
# - '.github/**'
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
@ -27,7 +27,7 @@ jobs:
|
|||||||
touch /home/runner/.ssh/id_rsa
|
touch /home/runner/.ssh/id_rsa
|
||||||
echo -e "${{secrets.SSH_KEY}}" > /home/runner/.ssh/id_rsa
|
echo -e "${{secrets.SSH_KEY}}" > /home/runner/.ssh/id_rsa
|
||||||
chmod 700 /home/runner/.ssh/id_rsa
|
chmod 700 /home/runner/.ssh/id_rsa
|
||||||
ssh-keygen -R ${{secrets.SSH_HOST}}
|
ssh-keyscan -t rsa,dsa,ecdsa,ed25519 ${{secrets.SSH_HOST}} >> /home/runner/.ssh/known_hosts
|
||||||
|
|
||||||
- name: SSH to the Prod env
|
- name: SSH to the Prod env
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -35,4 +35,4 @@ jobs:
|
|||||||
ssh -tt -o StrictHostKeyChecking=no gitea@${{secrets.SSH_HOST}}
|
ssh -tt -o StrictHostKeyChecking=no gitea@${{secrets.SSH_HOST}}
|
||||||
whoiam
|
whoiam
|
||||||
|
|
||||||
# ssh-keyscan -t rsa,dsa,ecdsa,ed25519 ${{secrets.SSH_HOST}} >> /home/runner/.ssh/known_hosts
|
#
|
||||||
|
Reference in New Issue
Block a user