diff --git a/.github/workflows/ansible-install.yml b/.github/workflows/ansible-install.yml index cb69758..6a25c31 100644 --- a/.github/workflows/ansible-install.yml +++ b/.github/workflows/ansible-install.yml @@ -12,14 +12,14 @@ jobs: - name: Check out the codebase. uses: actions/checkout@v2 - # Taken here: https://github.com/dbritto-dev/openvpn3-action/blob/main/action.yml#L25 + # Taken here: https://community.openvpn.net/openvpn/wiki/OpenVPN3Linux - name: Install OpenVPN run: | export DISTRO=$(lsb_release --codename | cut -f2) - sudo apt-get install -y apt-transport-https - sudo wget https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub - sudo apt-key add openvpn-repo-pkg-key.pub - sudo wget -O /etc/apt/sources.list.d/openvpn3.list https://swupdate.openvpn.net/community/openvpn3/repos/openvpn3-$DISTRO.list + sudo apt-get install -y apt-transport-https curl + sudo mkdir -p /etc/apt/keyrings + sudo curl -sSfL https://packages.openvpn.net/packages-repo.gpg > /etc/apt/keyrings/openvpn.asc + sudo echo "deb [signed-by=/etc/apt/keyrings/openvpn.asc] https://packages.openvpn.net/openvpn3/debian $DISTRO main" >> /etc/apt/sources.list.d/openvpn3.list sudo apt-get update -y && sudo apt-get install -y openvpn3 - name: Setup VPN config diff --git a/.github/workflows/ansible-updates.yml b/.github/workflows/ansible-updates.yml index 610a172..ade2eec 100644 --- a/.github/workflows/ansible-updates.yml +++ b/.github/workflows/ansible-updates.yml @@ -11,14 +11,14 @@ jobs: - name: Check out the codebase. uses: actions/checkout@v2 - # Taken here: https://github.com/dbritto-dev/openvpn3-action/blob/main/action.yml#L25 + # Taken here: https://community.openvpn.net/openvpn/wiki/OpenVPN3Linux - name: Install OpenVPN run: | export DISTRO=$(lsb_release --codename | cut -f2) - sudo apt-get install -y apt-transport-https - sudo wget https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub - sudo apt-key add openvpn-repo-pkg-key.pub - sudo wget -O /etc/apt/sources.list.d/openvpn3.list https://swupdate.openvpn.net/community/openvpn3/repos/openvpn3-$DISTRO.list + sudo apt-get install -y apt-transport-https curl + sudo mkdir -p /etc/apt/keyrings + sudo curl -sSfL https://packages.openvpn.net/packages-repo.gpg > /etc/apt/keyrings/openvpn.asc + sudo echo "deb [signed-by=/etc/apt/keyrings/openvpn.asc] https://packages.openvpn.net/openvpn3/debian $DISTRO main" >> /etc/apt/sources.list.d/openvpn3.list sudo apt-get update -y && sudo apt-get install -y openvpn3 - name: Setup VPN config