Skip to content

Commit

Permalink
Merge pull request #58 from golfzaptw/fixes/cant-connect-vpn
Browse files Browse the repository at this point in the history
add check connect vpn
  • Loading branch information
golfzaptw authored Aug 6, 2020
2 parents 0e9b1d4 + 9cde0d2 commit e87853b
Show file tree
Hide file tree
Showing 6 changed files with 1,372 additions and 1,147 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/check_vpn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Check connect vpn

on:
push:
branches-ignore:
- master
- develop
- dependabot

jobs:
check-vpn:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install Open VPN
run: sudo apt-get install openvpn
- name: Connect VPN
uses: ./
id: connect_vpn
with:
PING_URL: ${{ secrets.PING_URL }}
FILE_OVPN: '.github/vpn/config.ovpn'
SECRET: ${{ secrets.SECRET_USERNAME_PASSWORD }}
env:
CA_CRT: ${{ secrets.CA_CRT}}
USER_CRT: ${{ secrets.USER_CRT }}
USER_KEY: ${{ secrets.USER_KEY }}
- name: Check Connect VPN
run: echo ${{ steps.connect_vpn.outputs.STATUS }}
- name: kill vpn
if: always()
run: sudo killall openvpn
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
node_modules
node_modules
.env
*.crt
*.key
*.txt
Loading

0 comments on commit e87853b

Please sign in to comment.