Compare commits
9 Commits
refactor-t
...
renovate/c
Author | SHA1 | Date | |
---|---|---|---|
ff1236504d | |||
877691e308 | |||
b3f437902f | |||
db02862770 | |||
e601741b2c | |||
4737de1394 | |||
c01b61cb8d | |||
2a1b2fadce | |||
70b79587f0 |
@ -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
|
||||||
|
@ -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
|
||||||
# -------------------------------------------------------
|
# -------------------------------------------------------
|
||||||
|
@ -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
2
env/openvpn.env
vendored
@ -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
3
renovate.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
||||||
|
}
|
@ -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
|
||||||
|
Reference in New Issue
Block a user