Skip to content

Commit

Permalink
Copy SSH config
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcamilleri committed Apr 15, 2020
1 parent 902b521 commit 62278fa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/vpn/config.ssh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Host 10.249.1.100
StrictHostKeyChecking no
User john
9 changes: 9 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ jobs:
- name: Check Connect VPN
run: echo ${{ steps.connect_vpn.outputs.STATUS }}

# - name: Add host key to known_hosts
# run: mkdir -p ~/.ssh && ssh-keyscan 10.249.1.100 >> ~/.ssh/known_hosts

- name: Create SSH folder
run: mkdir -p ~/.ssh && chmod 700 ~/.ssh

- name: Copy SSH settings
run: cp .github/vpn/config.ssh ~/.ssh/config && chmod 600 ~/.ssh/config

- name: Run deploy script
run: ./deploy.sh

Expand Down

0 comments on commit 62278fa

Please sign in to comment.