File tree 7 files changed +15
-5
lines changed
7 files changed +15
-5
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 34
34
sudo apt-get install openvpn-systemd-resolved
35
35
shell : bash
36
36
37
+ - name : Validate OpenVPN
38
+ run : |
39
+ echo -e "\nOpenVPN Version:" ;
40
+ openvpn --version ;
41
+ echo -e "\nPinging URL: ${{ inputs.PING_URL }}" ;
42
+ ping -c 3 ${{ inputs.PING_URL }} ;
43
+ echo -e "\nIP Route:" ;
44
+ ip route ;
45
+ shell : bash
46
+
37
47
- name : Connect VPN
38
48
env :
39
49
TLS_KEY : ${{ inputs.TLS_KEY }}
48
58
echo "$USER_CRT" | base64 -d > user.crt
49
59
echo "$USER_KEY" | base64 -d > user.key
50
60
echo "$SECRET" | base64 -d > secret.txt
61
+
62
+ echo -e "sudo openvpn --config ${{ inputs.FILE_OVPN }} --daemon" ;
51
63
sudo openvpn --config ${{ inputs.FILE_OVPN }} --daemon
52
64
53
65
- name : VPN Status
File renamed without changes.
Original file line number Diff line number Diff line change 40
40
sed -i "s/\(dhcp-option DNS \).*/\1${{ inputs.dns-ip }}/" .github/vpn/${{ inputs.env-name }}.ovpn
41
41
shell : bash
42
42
43
- - uses : josiahsiegel/action-connect-ovpn@794339aff94452216c97f609476c367a43a31295
44
- # # DevSecOps - Aquia (Replace) - uses: ./.github/actions/action-connect-ovpn
45
-
43
+ - uses : ./.github/actions/connect-ovpn
46
44
if : inputs.env-name && inputs.ca-cert != 'false'
47
45
id : connect_vpn
48
46
with :
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ updates:
121
121
interval : " daily"
122
122
123
123
- package-ecosystem : " github-actions"
124
- directory : " /.github/actions/action- connect-ovpn"
124
+ directory : " /.github/actions/connect-ovpn"
125
125
schedule :
126
126
interval : " daily"
127
127
Original file line number Diff line number Diff line change @@ -45,4 +45,4 @@ key user.key
45
45
script-security 2
46
46
up /etc/openvpn/update-systemd-resolved
47
47
down /etc/openvpn/update-systemd-resolved
48
- down-pre
48
+ down-pre
You can’t perform that action at this time.
0 commit comments