Try buidling in Woodpecker CI
This commit is contained in:
parent
5c3f73e8c4
commit
42511439ce
60
.woodpecker.yaml
Normal file
60
.woodpecker.yaml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user