Try pushing to gitea

Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
This commit is contained in:
2025-11-26 13:30:53 +01:00
parent 0dca91f574
commit 2caa791be2
2 changed files with 8 additions and 8 deletions

View File

@@ -17,7 +17,8 @@ steps:
environment: environment:
BUILDAH_REG: gitea.badhouseplants.net/badhouseplants/container-builder BUILDAH_REG: gitea.badhouseplants.net/badhouseplants/container-builder
REGISTRY_TOKEN: REGISTRY_TOKEN:
from_secret: registry_token from_secret: GITEA_REGISTRY_TOKEN
REGISTRY_USER: devops-bot
commands: commands:
- env - env
- ./build - ./build

13
build
View File

@@ -21,19 +21,18 @@
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
#! /bin/sh #! /bin/sh
echo "28.03.2025" echo "28.11.2025"
apk update apk update
apk add buildah cni-plugins iptables ip6tables fuse-overlayfs netavark 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 zot.badhouseplants.net
buildah build -t $BUILDAH_REG:$CI_COMMIT_SHA . buildah build -t $BUILDAH_REG:$CI_COMMIT_SHA .
buildah tag $BUILDAH_REG:$CI_COMMIT_SHA $BUILDAH_REG:latest
if [ -z ${BUILD_DEBUG+x} ]; then if [ -z ${BUILD_DEBUG+x} ]; then
buildah push $BUILDAH_REG:$CI_COMMIT_SHA; buildah push $BUILDAH_REG:$CI_COMMIT_SHA;
buildah push $BUILDAH_REG:latest;
fi fi
if [ "${CI_REPO_DEFAULT_BRANCH}"="${CI_COMMIT_BRANCH}" ]; then if [ ${CI_COMMIT_BRANCH} = ${CI_REPO_DEFAULT_BRANCH} ]; then
buildah push $BUILDAH_REG:latest buildah tag $BUILDAH_REG:$CI_COMMIT_SHA $BUILDAH_REG:latest
buildah push $BUILDAH_REG:latest;
fi fi