Push builder to zot

This commit is contained in:
Nikolai Rodionov 2024-09-20 06:24:52 +02:00
parent 5c8c258623
commit 0e1ff2e22e
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ steps:
image: alpine image: alpine
privileged: true privileged: true
environment: environment:
BUILDAH_REG: gitea.badhouseplants.net/badhouseplants/badhouseplants-builder BUILDAH_REG: zot.badhouseplants.net/badhouseplants/badhouseplants-builder
commands: commands:
- ./build - ./build
secrets: secrets:
@ -34,10 +34,10 @@ steps:
nodeSelector: nodeSelector:
kubernetes.io/arch: "${ARCH}" kubernetes.io/arch: "${ARCH}"
cleanup: cleanup:
image: gitea.badhouseplants.net/badhouseplants/badhouseplants-builder:latest image: zot.badhouseplants.net/badhouseplants/badhouseplants-builder:latest
secrets: secrets:
- gitea_token - gitea_token
environment: environment:
BUILDAH_REG: gitea.badhouseplants.net/badhouseplants/badhouseplants-builder BUILDAH_REG: zot.badhouseplants.net/badhouseplants/badhouseplants-builder
commands: commands:
- cleanup - cleanup

2
build
View File

@ -25,7 +25,7 @@ echo "24.07.2024"
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 allanger -p $GITEA_TOKEN gitea.badhouseplants.net buildah login -u woody -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 buildah tag $BUILDAH_REG:$CI_COMMIT_SHA $BUILDAH_REG:latest
if [ -z ${BUILD_DEBUG+x} ]; then if [ -z ${BUILD_DEBUG+x} ]; then