Skip to content

aduriseti/ovpn3-connect-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Based on "golfzaptw/action-connect-ovpn#36 (comment)"

Preparing repo secrets:

  • OVPN_CONFIG: copy your raw .ovpn config to this secret - it cant reference any other cert,secret, or tls files - i.e. must be self-contained
  • OVPN_USER: copy your username (if applicable) to this secret - NO NEWLINE
  • OVPN_PASS: copy your password (if applicable) to this secret - NO NEWLINE

Usage:

- name: Connect VPN
  uses: aduriseti/ovpn3-connect-action@v1
  with:
    ovpn-config:  ${{ secrets.OVPN_CONFIG }}
    vpn-user:     ${{ secrets.VPN_USER }}
    vpn-pass:     ${{ secrets.VPN_PASS }}
.........
USE VPN CONNECTION HERE
.........
- name: Kill VPN Connection
  if: always()
  run: |
    sudo pkill openvpn