From 42511439ceee58dc27da7c262cc57c5dce91f26a Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Fri, 24 May 2024 16:28:59 +0200 Subject: [PATCH] Try buidling in Woodpecker CI --- .woodpecker.yaml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .woodpecker.yaml diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..f48a23b --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,60 @@ +--- +when: + event: + - push + branch: + - main +steps: + build-xor: + name: Build openvpn xor amd64 + image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:9665015b44590b7ce2139f7acbad23af6628fff3 + secrets: + - gitea_token + privileged: true + depends_on: [] + environment: + CONTAINERFILE: ./containerfiles/Containerfile-XOR + backend_options: + kubernetes: + resources: + requests: + memory: 500Mi + cpu: 200m + limits: + memory: 500Mi + cpu: 200m + securityContext: + privileged: true + commands: + - source ./env/openvpn_xor.env + - git clone https://github.com/Tunnelblick/Tunnelblick.git /tmp/tunnelblick + - 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 + + build: + name: Build openvpn amd64 + image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:9665015b44590b7ce2139f7acbad23af6628fff3 + privileged: true + depends_on: [] + backend_options: + kubernetes: + resources: + requests: + memory: 500Mi + cpu: 200m + limits: + memory: 500Mi + cpu: 200m + securityContext: + privileged: true + secrets: + - gitea_token + environment: + CONTAINERFILE: ./containerfiles/Containerfile + commands: + - source ./env/openvpn.env + - export CUSTOM_TAG="v$OPENVPN_VERSION" + - export BUILD_ARGS="--build-arg OPENVPN_VERSION=$OPENVPN_VERSION" + - build-container