Skip to content

Connect to OpenVPN using Github Actions

Notifications You must be signed in to change notification settings

insgreeb-pro/vpn-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VPN Action

Connect to OpenVPN using github actions

Usage

- uses: insgreeb-pro/vpn-action@v1
  name: Connect to OpenVPN
  with:
    username: ${{ secrets.VPN_USER }}
    password: ${{ secrets.VPN_PASSWORD }}
    config: ${{ secrets.VPN_FILE }}

username - (required) username to connect vpn server
password - (required) password to connect vpn server
config - (required) url to download conifig file .ovpn


Example

with ping test:

- uses: insgreeb-pro/vpn-action@v1
  name: Connect to OpenVPN
  with:
    username: ${{ secrets.VPN_USER }}
    password: ${{ secrets.VPN_PASSWORD }}
    config: ${{ secrets.VPN_FILE }}

- name: PING Test
  run: ping -c 4 ${{ secrets.LOCAL_SERVER }}