try with buildah

This commit is contained in:
Evan Jarrett
2025-12-03 22:28:53 -06:00
parent 4a4a7b4258
commit a09453c60d
+2 -16
View File
@@ -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