Skip to content

Commit

Permalink
Seperated out commands
Browse files Browse the repository at this point in the history
  • Loading branch information
erland-syafiq committed Jun 2, 2024
1 parent f02ff45 commit 6683be2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/vtmunc-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Create SSH key
run: |
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
ssh-keyscan -H vtmunc.org > ~/.ssh/known_hosts
- name: Create SSH key file
run: install -m 600 -D /dev/null ~/.ssh/id_rsa
- name: Adding contents of ssh key
run: echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
- name: Adding known hosts
run: ssh-keyscan -H vtmunc.org -i ~/.ssh/id_rsa > ~/.ssh/known_hosts
- name: SSH into EC2 instance
run: ssh -i ~/.ssh/id_rsa webapp@vtmunc.org
- name: Pull image from docker hub
Expand Down

0 comments on commit 6683be2

Please sign in to comment.