From c827972079c409b8e0ce3a93a8b1d5b299ce2b78 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Tue, 27 Feb 2024 16:40:29 +0100 Subject: [PATCH] Add build args support --- .drone.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9e650d7..02eb9c2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,7 @@ trigger: steps: - name: Build openvpn xor amd64 - image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:9fabf0ce6eab3a9a9da15b2791e8282afc05ee0b + image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:ff4a98f2acb557ad443f279627036bebf06bc4f1 privileged: true environment: GITEA_TOKEN: @@ -24,10 +24,11 @@ steps: - source ./env/openvpn_xor.env - env - 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 - name: Build openvpn amd64 - image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:9fabf0ce6eab3a9a9da15b2791e8282afc05ee0b + image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:ff4a98f2acb557ad443f279627036bebf06bc4f1 privileged: true environment: GITEA_TOKEN: @@ -36,4 +37,5 @@ steps: commands: - source ./env/openvpn.env - export CUSTOM_TAG="v$OPENVPN_VERSION" + - export BUILD_ARGS="--build-arg OPENVPN_VERSION=$OPENVPN_VERSION" - build-container