Push builder to zot
This commit is contained in:
parent
5c8c258623
commit
0e1ff2e22e
@ -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
2
build
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user