9 Commits

Author SHA1 Message Date
ff1236504d Add renovate.json 2024-09-11 14:04:52 +00:00
877691e308 Build older vpn 2.6.5
Some checks failed
ci/woodpecker/push/woodpecker/1 Pipeline failed
ci/woodpecker/push/woodpecker/2 Pipeline was successful
2024-08-18 22:36:44 +02:00
b3f437902f Try newer ubuntu
Some checks failed
ci/woodpecker/push/woodpecker/2 Pipeline was successful
ci/woodpecker/push/woodpecker/1 Pipeline failed
2024-08-18 22:17:59 +02:00
db02862770 Fix registry url
Some checks failed
ci/woodpecker/push/woodpecker/1 Pipeline failed
ci/woodpecker/push/woodpecker/2 Pipeline was successful
2024-08-18 21:52:18 +02:00
e601741b2c Fix the arch
Some checks failed
ci/woodpecker/push/woodpecker/2 Pipeline failed
ci/woodpecker/push/woodpecker/1 Pipeline was successful
2024-08-18 21:50:48 +02:00
4737de1394 Fix the arch
Some checks failed
ci/woodpecker/push/woodpecker/2 Pipeline failed
ci/woodpecker/push/woodpecker/1 Pipeline was successful
2024-08-18 21:48:06 +02:00
c01b61cb8d Trigger build
Some checks failed
ci/woodpecker/push/woodpecker/1 Pipeline failed
ci/woodpecker/push/woodpecker/2 Pipeline failed
2024-08-18 21:28:49 +02:00
2a1b2fadce Trigger build 2024-08-18 21:28:12 +02:00
70b79587f0 Move back to ubuntu 22.04 2024-08-18 21:26:41 +02:00
6 changed files with 17 additions and 10 deletions

View File

@ -13,22 +13,25 @@ matrix:
steps: steps:
build-${TARGET}: build-${TARGET}:
name: Build ${TARGET} name: Build ${TARGET}
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:latest image: gitea.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
secrets: secrets:
- gitea_token - gitea_token
environment:
CONTAINER_REGISTRY: gitea.badhouseplants.net
privileged: true privileged: true
depends_on: [] depends_on: []
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:
requests: requests:
memory: 500Mi memory: 1024Mi
cpu: 200m cpu: 300m
limits: limits:
memory: 500Mi memory: 1024Mi
cpu: 200m
securityContext: securityContext:
privileged: true privileged: true
nodeSelector:
kubernetes.io/arch: "amd64"
commands: commands:
- source ./env/${TARGET}.env - source ./env/${TARGET}.env
- ./scripts/$SCRIPT - ./scripts/$SCRIPT

View File

@ -16,7 +16,7 @@ RUN dudo -l "https://swupdate.openvpn.org/community/releases/openvpn-{{ version
RUN tar -xf /tmp/openvpn.tar.gz -C /tmp && rm -f /tmp/openvpn.tar.gz RUN tar -xf /tmp/openvpn.tar.gz -C /tmp && rm -f /tmp/openvpn.tar.gz
RUN mv /tmp/openvpn-${OPENVPN_VERSION} /output/openvpn RUN mv /tmp/openvpn-${OPENVPN_VERSION} /output/openvpn
FROM ubuntu as builder FROM ubuntu:22.04 as builder
# ------------------------------------------------------ # ------------------------------------------------------
# -- TODO: Define it only once # -- TODO: Define it only once
# ------------------------------------------------------ # ------------------------------------------------------
@ -36,7 +36,7 @@ RUN cp $(which openvpn) /output/
# ------------------------------------------------------ # ------------------------------------------------------
# -- Final container # -- Final container
# ------------------------------------------------------ # ------------------------------------------------------
FROM ubuntu:24.04 FROM ubuntu:22.04
LABEL maintainer="allanger <allanger@zohomail.com>" LABEL maintainer="allanger <allanger@zohomail.com>"
COPY --from=builder /output /src COPY --from=builder /output /src
# ------------------------------------------------------- # -------------------------------------------------------

View File

@ -23,7 +23,7 @@ RUN dudo -l "https://github.com/Tunnelblick/Tunnelblick/archive/refs/tags/v{{ ve
RUN tar -xf /tmp/tunnelblick.tar.gz -C /tmp && rm -f /tmp/tunnelblick.tar.gz RUN tar -xf /tmp/tunnelblick.tar.gz -C /tmp && rm -f /tmp/tunnelblick.tar.gz
RUN mv /tmp/Tunnelblick-$TUNNELBLICK_VERSION /output/tunnelblick RUN mv /tmp/Tunnelblick-$TUNNELBLICK_VERSION /output/tunnelblick
FROM ubuntu as builder FROM ubuntu:24.04 as builder
# ------------------------------------------------------ # ------------------------------------------------------
# -- TODO: Define it only once # -- TODO: Define it only once
# ------------------------------------------------------ # ------------------------------------------------------

2
env/openvpn.env vendored
View File

@ -1,3 +1,3 @@
export OPENVPN_VERSION=2.6.11 export OPENVPN_VERSION=2.6.5
export CONTAINERFILE=./containerfiles/Containerfile export CONTAINERFILE=./containerfiles/Containerfile
export SCRIPT=build_upstream.sh export SCRIPT=build_upstream.sh

3
renovate.json Normal file
View File

@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}

View File

@ -1,6 +1,7 @@
#!/usr/bin/env sh #!/usr/bin/env sh
git clone https://github.com/Tunnelblick/Tunnelblick.git /tmp/tunnelblick git clone https://github.com/Tunnelblick/Tunnelblick.git /tmp/tunnelblick
git -C /tmp/tunnelblick checkout $TUNNELBLICK_VERSION
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 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 CUSTOM_TAG="v$OPENVPN_VERSION-XOR-$TUNNELBLICK_VERSION"
export BUILD_ARGS="--build-arg OPENVPN_VERSION=$OPENVPN_VERSION --build-arg TUNNELBLICK_VERSION=$TUNNELBLICK_VERSION" export BUILD_ARGS="--build-arg OPENVPN_VERSION=$OPENVPN_VERSION --build-arg TUNNELBLICK_VERSION=$TUNNELBLICK_VERSION"
build-container build-container