From dd72304bc7c409133ad31c2e175287943fbf8dda Mon Sep 17 00:00:00 2001 From: Allan Bowe Date: Mon, 24 Oct 2022 10:10:39 +0000 Subject: [PATCH] fix: removing old vpn files BREAKING CHANGE: The _previous_ commit introduced some breaking changes, due to method re-organisation, namely: * merged executableScriptSAS9, executableScriptSASViya and executableScriptSASjs methods to executableScript * removed deployToSASjs and executeJobSASjs from the main SASjs moodule, as we can use the SASjsApiClient directly for these operations --- .github/vpn/config.ovpn | 30 ------------------------------ .github/workflows/build.yml | 25 ------------------------- 2 files changed, 55 deletions(-) delete mode 100644 .github/vpn/config.ovpn diff --git a/.github/vpn/config.ovpn b/.github/vpn/config.ovpn deleted file mode 100644 index abd1a74..0000000 --- a/.github/vpn/config.ovpn +++ /dev/null @@ -1,30 +0,0 @@ -cipher AES-256-CBC -setenv FORWARD_COMPATIBLE 1 -client -server-poll-timeout 4 -nobind -remote vpn.analytium.co.uk 1194 udp -remote vpn.analytium.co.uk 1194 udp -remote vpn.analytium.co.uk 443 tcp -remote vpn.analytium.co.uk 1194 udp -remote vpn.analytium.co.uk 1194 udp -remote vpn.analytium.co.uk 1194 udp -remote vpn.analytium.co.uk 1194 udp -remote vpn.analytium.co.uk 1194 udp -dev tun -dev-type tun -ns-cert-type server -setenv opt tls-version-min 1.0 or-highest -reneg-sec 604800 -sndbuf 0 -rcvbuf 0 -# NOTE: LZO commands are pushed by the Access Server at connect time. -# NOTE: The below line doesn't disable LZO. -comp-lzo no -verb 3 -setenv PUSH_PEER_INFO - -ca ca.crt -cert user.crt -key user.key -tls-auth tls.key 1 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5988625..102fd6b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,31 +45,6 @@ jobs: key: ${{ secrets.DCGITLAB_KEY }} known_hosts: 'placeholder' - - name: Write VPN Files - run: | - echo "$CA_CRT" > .github/vpn/ca.crt - echo "$USER_CRT" > .github/vpn/user.crt - echo "$USER_KEY" > .github/vpn/user.key - echo "$TLS_KEY" > .github/vpn/tls.key - shell: bash - env: - CA_CRT: ${{ secrets.CA_CRT}} - USER_CRT: ${{ secrets.USER_CRT }} - USER_KEY: ${{ secrets.USER_KEY }} - TLS_KEY: ${{ secrets.TLS_KEY }} - - - name: Install Open VPN - run: | - sudo apt install 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-focal.list - sudo apt update - sudo apt install openvpn3=16~beta+focal - - - name: Start Open VPN 3 - run: openvpn3 session-start --config .github/vpn/config.ovpn - - name: Deploy sasjs-tests run: | npm install -g replace-in-files-cli