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
|
||||
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
|
||||
matrix:
|
||||
TARGET:
|
||||
- openvpn_xor
|
||||
- openvpn
|
||||
|
||||
steps:
|
||||
build-${TARGET}:
|
||||
name: Build ${TARGET}
|
||||
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:9665015b44590b7ce2139f7acbad23af6628fff3
|
||||
secrets:
|
||||
- gitea_token
|
||||
privileged: true
|
||||
depends_on: []
|
||||
backend_options:
|
||||
@ -49,12 +29,6 @@ steps:
|
||||
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
|
||||
- source ./env/${TARGET}.env
|
||||
- ./scripts/$SCRIPT
|
||||
|
2
env/openvpn.env
vendored
2
env/openvpn.env
vendored
@ -1 +1,3 @@
|
||||
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 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