Compare commits
5 Commits
0c395558dc
...
9dcba526aa
| Author | SHA1 | Date | |
|---|---|---|---|
|
9dcba526aa
|
|||
|
e408fe8c99
|
|||
|
2caa791be2
|
|||
|
0dca91f574
|
|||
|
3db0354e74
|
@@ -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:
|
||||
|
||||
@@ -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 &&\
|
||||
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
10
build
@@ -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
|
||||
|
||||
@@ -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'} || "";
|
||||
|
||||
Reference in New Issue
Block a user