mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-20 17:24:16 +00:00
try with buildah
This commit is contained in:
@@ -5,8 +5,8 @@ when:
|
||||
- event: ["push"]
|
||||
tag: ["v*"]
|
||||
|
||||
engine: "kubernetes"
|
||||
image: golang:1.25-trixie
|
||||
engine: kubernetes
|
||||
image: quay.io/buildah/stable:latest
|
||||
architecture: amd64
|
||||
|
||||
environment:
|
||||
@@ -14,45 +14,31 @@ environment:
|
||||
IMAGE_USER: evan.jarrett.net
|
||||
|
||||
steps:
|
||||
|
||||
- name: Setup build environment
|
||||
command: |
|
||||
if ! grep -q "^root:" /etc/passwd 2>/dev/null; then
|
||||
echo "root:x:0:0:root:/root:/bin/sh" >> /etc/passwd
|
||||
fi
|
||||
|
||||
- name: Login to registry
|
||||
command: |
|
||||
echo "${APP_PASSWORD}" | buildah login \
|
||||
--storage-driver vfs \
|
||||
-u "${IMAGE_USER}" \
|
||||
--password-stdin \
|
||||
${IMAGE_REGISTRY}
|
||||
|
||||
- name: Build and push AppView image
|
||||
command: |
|
||||
echo ${TANGLED_REF_NAME}
|
||||
buildah bud \
|
||||
--storage-driver vfs \
|
||||
--tag ${IMAGE_REGISTRY}/${IMAGE_USER}/atcr-appview:${TANGLED_REF_NAME} \
|
||||
--tag ${IMAGE_REGISTRY}/${IMAGE_USER}/atcr-appview:latest \
|
||||
--file ./Dockerfile.appview \
|
||||
.
|
||||
|
||||
buildah push \
|
||||
--storage-driver vfs \
|
||||
${IMAGE_REGISTRY}/${IMAGE_USER}/atcr-appview:latest
|
||||
|
||||
- name: Build and push Hold image
|
||||
command: |
|
||||
echo ${TANGLED_REF_NAME}
|
||||
buildah bud \
|
||||
--storage-driver vfs \
|
||||
--tag ${IMAGE_REGISTRY}/${IMAGE_USER}/atcr-hold:${TANGLED_REF_NAME} \
|
||||
--tag ${IMAGE_REGISTRY}/${IMAGE_USER}/atcr-hold:latest \
|
||||
--file ./Dockerfile.hold \
|
||||
.
|
||||
|
||||
buildah push \
|
||||
--storage-driver vfs \
|
||||
${IMAGE_REGISTRY}/${IMAGE_USER}/atcr-hold:latest
|
||||
|
||||
Reference in New Issue
Block a user