Get OpenVPN version automatically

This commit is contained in:
Nikolai Rodionov 2024-02-29 10:29:14 +01:00
parent 0cabb525d4
commit 114050fa99
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -23,7 +23,7 @@ steps:
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 OPENVPN_VERSION=$(ls /tmp/tunnelblick/third_party/sources/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