Skip to content

Commit

Permalink
Write key directly to file instead of using ssh-add
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcamilleri committed Apr 15, 2020
1 parent 760468b commit d644287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
uses: golfzaptw/action-connect-ovpn@master
id: connect_vpn
with:
# PING_URL: '10.249.1.100'
FILE_OVPN: '.github/vpn/config.ovpn'
env:
CA_CRT: ${{ secrets.CA_CRT }}
Expand All @@ -32,7 +31,8 @@ jobs:
chmod 700 ~/.ssh
cp .github/vpn/config.ssh ~/.ssh/config
chmod 600 ~/.ssh/config
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
cat > ~/.ssh/id_rsa <<< "${{ secrets.SSH_PRIVATE_KEY }}"
chmod 600 ~/.ssh/id_rsa
- name: Run deploy script
run: ./deploy.sh
Expand Down

0 comments on commit d644287

Please sign in to comment.