Deploy VPN #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Deploy VPN" | |
on: | |
workflow_dispatch: | |
env: | |
AWS_REGION: eu-south-1 | |
jobs: | |
deploy-vpn-remote: | |
name: Deploy VPN | |
timeout-minutes: 1500 | |
runs-on: vpn | |
container: | |
image: ubuntu | |
steps: | |
- run: apt-get update | |
- run: apt-get install curl -y | |
- run: apt-get install gpg -y | |
- run: mkdir -p /etc/apt/keyrings # directory does not exist on older releases | |
- run: curl -fsSL https://swupdate.openvpn.net/repos/repo-public.gpg | gpg --dearmor > /etc/apt/keyrings/openvpn-repo-public.gpg | |
- run: echo "deb [arch=arm64 signed-by=/etc/apt/keyrings/openvpn-repo-public.gpg] https://build.openvpn.net/debian/openvpn/stable jammy main" > /etc/apt/sources.list.d/openvpn-aptrepo.list | |
- run: apt-get update | |
- run: apt-get install openvpn -y | |
deploy-vpn-local: | |
name: Deploy VPN Local | |
timeout-minutes: 1500 | |
runs-on: ubuntu-latest | |
container: | |
image: ubuntu | |
steps: | |
- run: apt-get update | |
- run: apt-get install curl -y | |
- run: apt-get install gpg -y | |
- run: mkdir -p /etc/apt/keyrings # directory does not exist on older releases | |
- run: curl -fsSL https://swupdate.openvpn.net/repos/repo-public.gpg | gpg --dearmor > /etc/apt/keyrings/openvpn-repo-public.gpg | |
- run: echo "deb [arch=arm64 signed-by=/etc/apt/keyrings/openvpn-repo-public.gpg] https://build.openvpn.net/debian/openvpn/stable jammy main" > /etc/apt/sources.list.d/openvpn-aptrepo.list | |
- run: apt-get update | |
- run: apt-get install openvpn -y |