Compare commits

...

5 Commits

Author SHA1 Message Date
9dcba526aa Try pushing to gitea
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
2025-11-28 13:00:12 +01:00
e408fe8c99 Try pushing to gitea
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
2025-11-28 13:00:11 +01:00
2caa791be2 Try pushing to gitea
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
2025-11-28 12:59:58 +01:00
0dca91f574 Check the env
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
2025-11-28 12:59:09 +01:00
3db0354e74 Try pushing to the latest one as well
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
2025-11-28 12:56:18 +01:00
4 changed files with 14 additions and 20 deletions

View File

@@ -15,9 +15,10 @@ steps:
image: alpine
privileged: true
environment:
BUILDAH_REG: zot.badhouseplants.net/badhouseplants/badhouseplants-builder
BUILDAH_REG: gitea.badhouseplants.net/badhouseplants/container-builder
REGISTRY_TOKEN:
from_secret: registry_token
from_secret: GITEA_REGISTRY_TOKEN
REGISTRY_USER: devops-bot
commands:
- ./build
backend_options:

View File

@@ -1,16 +1,5 @@
FROM registry.hub.docker.com/rclone/rclone AS rclone
WORKDIR /out
RUN cp $(which rclone) /out/rclone
FROM registry.hub.docker.com/argoproj/argocd as argocd
WORKDIR /out
RUN cp $(which argocd) /out/argocd
FROM registry.hub.docker.com/library/alpine
RUN apk update --no-cache&&\
RUN apk update --no-cache &&\
apk add yq gettext openssl curl jq perl git git-lfs netavark\
buildah cni-plugins iptables ip6tables fuse-overlayfs --no-cache
COPY --from=rclone /out/rclone /usr/bin/rclone
COPY --from=argocd /out/argocd /usr/bin/argocd
COPY ./scripts/ /usr/bin/

10
build
View File

@@ -21,14 +21,18 @@
# ---------------------------------------------------------------------------
#! /bin/sh
echo "23.03.2025"
echo "28.11.2025"
apk update
apk add buildah cni-plugins iptables ip6tables fuse-overlayfs netavark
buildah login -u woody -p $REGISTRY_TOKEN zot.badhouseplants.net
buildah login -u $REGISTRY_USER -p $REGISTRY_TOKEN gitea.badhouseplants.net
buildah build -t $BUILDAH_REG:$CI_COMMIT_SHA .
buildah tag $BUILDAH_REG:$CI_COMMIT_SHA $BUILDAH_REG:latest
if [ -z ${BUILD_DEBUG+x} ]; then
buildah push $BUILDAH_REG:$CI_COMMIT_SHA;
fi
if [ ${CI_COMMIT_BRANCH} = ${CI_REPO_DEFAULT_BRANCH} ]; then
buildah tag $BUILDAH_REG:$CI_COMMIT_SHA $BUILDAH_REG:latest
buildah push $BUILDAH_REG:latest;
fi

View File

@@ -35,7 +35,7 @@ chomp($git_commit_sha);
# -- Build the image with SHA tag
# -- my main build system is DRONE, so I'm using DRONE variables a lot
# ---------------------------------------------------------------------------
my $container_registry = $ENV{'CONTAINER_REGISTRY'} || 'zot.badhouseplants.net';
my $container_registry = $ENV{'CONTAINER_REGISTRY'} || 'gitea.badhouseplants.net';
my $image_name = $ENV{'PACKAGE_NAME'} | $ENV{'DRONE_REPO'} || "badhouseplants/badhouseplants-net";
my $tag = "$container_registry/$image_name:$git_commit_sha";
my $custom_tag = $ENV{'CUSTOM_TAG'} || "";