From 0cabb525d419b99f87e0ed4788e0a0c29b412edc Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Thu, 29 Feb 2024 10:25:05 +0100 Subject: [PATCH] Get OpenVPN version automatically --- .drone.yml | 2 ++ env/openvpn_xor.env | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index e1c4609..d8a57f8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,6 +22,8 @@ steps: CONTAINERFILE: ./containerfiles/Containerfile-XOR commands: - source ./env/openvpn_xor.env + - git clone https://github.com/Tunnelblick/Tunnelblick.git /tmp/tunnelblick + - export OPENVPN_VERSION=$(ls /tmp/tunnelblick/third_party/openvpn | sed 's/openvpn-//g' | sort -k1,1nr -k2,2n -k3,3n | head -n 1) - export CUSTOM_TAG="v$OPENVPN_VERSION-XOR-$TUNNELBLICK_VERSION" - export BUILD_ARGS="--build-arg OPENVPN_VERSION=$OPENVPN_VERSION --build-arg TUNNELBLICK_VERSION=$TUNNELBLICK_VERSION" - build-container diff --git a/env/openvpn_xor.env b/env/openvpn_xor.env index 36a87ac..4f2016a 100644 --- a/env/openvpn_xor.env +++ b/env/openvpn_xor.env @@ -1,2 +1 @@ -export OPENVPN_VERSION=2.6.9 export TUNNELBLICK_VERSION=4.0.0beta15