Try buidling in Woodpecker CI in matrix
This commit is contained in:
parent
42511439ce
commit
383dd1b82d
42
.drone.yml
42
.drone.yml
@ -1,42 +0,0 @@
|
|||||||
---
|
|
||||||
# ----------------------------------------------
|
|
||||||
# -- Build an image and push it to the registry
|
|
||||||
# ----------------------------------------------
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: Build the builder
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Build openvpn xor amd64
|
|
||||||
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:ff4a98f2acb557ad443f279627036bebf06bc4f1
|
|
||||||
privileged: true
|
|
||||||
environment:
|
|
||||||
GITEA_TOKEN:
|
|
||||||
from_secret: GITEA_TOKEN
|
|
||||||
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/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
|
|
||||||
|
|
||||||
- name: Build openvpn amd64
|
|
||||||
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:ff4a98f2acb557ad443f279627036bebf06bc4f1
|
|
||||||
privileged: true
|
|
||||||
environment:
|
|
||||||
GITEA_TOKEN:
|
|
||||||
from_secret: GITEA_TOKEN
|
|
||||||
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
|
|
@ -4,38 +4,18 @@ when:
|
|||||||
- push
|
- push
|
||||||
branch:
|
branch:
|
||||||
- main
|
- 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:
|
matrix:
|
||||||
name: Build openvpn amd64
|
TARGET:
|
||||||
|
- openvpn_xor
|
||||||
|
- openvpn
|
||||||
|
|
||||||
|
steps:
|
||||||
|
build-${TARGET}:
|
||||||
|
name: Build ${TARGET}
|
||||||
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:9665015b44590b7ce2139f7acbad23af6628fff3
|
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:9665015b44590b7ce2139f7acbad23af6628fff3
|
||||||
|
secrets:
|
||||||
|
- gitea_token
|
||||||
privileged: true
|
privileged: true
|
||||||
depends_on: []
|
depends_on: []
|
||||||
backend_options:
|
backend_options:
|
||||||
@ -49,12 +29,6 @@ steps:
|
|||||||
cpu: 200m
|
cpu: 200m
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
secrets:
|
|
||||||
- gitea_token
|
|
||||||
environment:
|
|
||||||
CONTAINERFILE: ./containerfiles/Containerfile
|
|
||||||
commands:
|
commands:
|
||||||
- source ./env/openvpn.env
|
- source ./env/${TARGET}.env
|
||||||
- export CUSTOM_TAG="v$OPENVPN_VERSION"
|
- ./scripts/$SCRIPT
|
||||||
- export BUILD_ARGS="--build-arg OPENVPN_VERSION=$OPENVPN_VERSION"
|
|
||||||
- build-container
|
|
||||||
|
2
env/openvpn.env
vendored
2
env/openvpn.env
vendored
@ -1 +1,3 @@
|
|||||||
export OPENVPN_VERSION=2.6.10
|
export OPENVPN_VERSION=2.6.10
|
||||||
|
export CONTAINERFILE=./containerfiles/Containerfile
|
||||||
|
export SCRIPT=build_upstream.sh
|
2
env/openvpn_xor.env
vendored
2
env/openvpn_xor.env
vendored
@ -1 +1,3 @@
|
|||||||
export TUNNELBLICK_VERSION=4.0.1
|
export TUNNELBLICK_VERSION=4.0.1
|
||||||
|
export CONTAINERFILE=./containerfiles/Containerfile-XOR
|
||||||
|
export SCRIPT=build_xor.sh
|
1
scripts/build_test.sh
Executable file
1
scripts/build_test.sh
Executable file
@ -0,0 +1 @@
|
|||||||
|
echo 1
|
4
scripts/build_upstream.sh
Executable file
4
scripts/build_upstream.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
export CUSTOM_TAG="v$OPENVPN_VERSION"
|
||||||
|
export BUILD_ARGS="--build-arg OPENVPN_VERSION=$OPENVPN_VERSION"
|
||||||
|
build-container
|
6
scripts/build_xor.sh
Executable file
6
scripts/build_xor.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user