From 3db0354e745d0034f5e36e5e3dc00a9882f0d273 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Fri, 28 Nov 2025 12:56:18 +0100 Subject: [PATCH] Try pushing to the latest one as well Signed-off-by: Nikolai Rodionov --- build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build b/build index da85411..e20381d 100755 --- a/build +++ b/build @@ -21,14 +21,19 @@ # --------------------------------------------------------------------------- #! /bin/sh -echo "23.03.2025" +echo "28.03.2025" apk update apk add buildah cni-plugins iptables ip6tables fuse-overlayfs netavark buildah login -u woody -p $REGISTRY_TOKEN zot.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; buildah push $BUILDAH_REG:latest; fi + +if [ "${CI_REPO_DEFAULT_BRANCH}"="${CI_COMMIT_BRANCH}" ]; then + buildah push $BUILDAH_REG:latest +fi