Skip to content

Commit

Permalink
Added keyscanning in runner
Browse files Browse the repository at this point in the history
  • Loading branch information
erland-syafiq committed Jun 2, 2024
1 parent 0e1a006 commit b05672a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/vtmunc-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Create identity file for ssh
run: echo "${{ secrets.EC2_IDENTITY_FILE}}" > vtmunc.pem
- name: Create SSH key
run: |
echo "${{ secrets.EC2_IDENTITY_FILE}}" > vtmunc.pem
ssh-keyscan -H vtmunc.org -i vtmunc.pem > ~/.ssh/known_hosts
- name: SSH into EC2 instance
run: ssh -i vtmunc.pem -o "StrictHostKeyChecking no" [email protected]
run: ssh -i vtmunc.pem [email protected]
- name: Pull image from docker hub
run: docker pull vtmunc/vtmunc:latest
- name: Delete old container
Expand Down

0 comments on commit b05672a

Please sign in to comment.