Skip to content

Commit

Permalink
use openvpn3 for GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
cguertin14 committed Aug 3, 2024
1 parent da2b997 commit ce01cfd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 24 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/ansible-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
- name: Install OpenVPN
run: |
sudo apt-get update
sudo apt-get --assume-yes --no-install-recommends install openvpn
sudo apt-get --assume-yes --no-install-recommends install openvpn3
- name: Setup VPN config
run: |
echo "${{ secrets.VPN_CONFIG }}" > config.ovpn
- name: Connect VPN
run: sudo openvpn --config config.ovpn --log vpn.log --daemon
run: sudo openvpn3 session-start --dco true --config config.ovpn --background

- name: Wait for a VPN connection
timeout-minutes: 1
Expand Down Expand Up @@ -57,13 +57,4 @@ jobs:
- name: Kill VPN connection
if: always()
run: |
sudo chmod 777 vpn.log
sudo killall openvpn
- name: Upload VPN logs
uses: actions/upload-artifact@v2
if: always()
with:
name: VPN logs
path: vpn.log
run: sudo killall openvpn3
15 changes: 3 additions & 12 deletions .github/workflows/ansible-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
- name: Install OpenVPN
run: |
sudo apt-get update
sudo apt-get --assume-yes --no-install-recommends install openvpn
sudo apt-get --assume-yes --no-install-recommends install openvpn3
- name: Setup VPN config
run: |
echo "${{ secrets.VPN_CONFIG }}" > config.ovpn
- name: Connect VPN
run: sudo openvpn --config config.ovpn --log vpn.log --daemon
run: sudo openvpn3 session-start --dco true --config config.ovpn --background

- name: Wait for a VPN connection
timeout-minutes: 1
Expand Down Expand Up @@ -56,13 +56,4 @@ jobs:
- name: Kill VPN connection
if: always()
run: |
sudo chmod 777 vpn.log
sudo killall openvpn
- name: Upload VPN logs
uses: actions/upload-artifact@v2
if: always()
with:
name: VPN logs
path: vpn.log
run: sudo killall openvpn

0 comments on commit ce01cfd

Please sign in to comment.