test buildah platforms flag environment variables

This commit is contained in:
PathToLife 2025-03-10 18:00:49 +13:00
parent b85036b78f
commit a42c7de112
No known key found for this signature in database
GPG key ID: EC6B08753A67F776
2 changed files with 2 additions and 1 deletions

View file

@ -62,7 +62,7 @@ jobs:
tags: ${{ steps.image-metadata.outputs.tags }}
labels: ${{ steps.image-metadata.outputs.labels }}
containerfiles: ./Dockerfile
archs: amd64,arm64v8,arm32v7
platforms: linux/amd64,linux/arm64
oci: true
# enable build layer caching between platforms
layers: true

View file

@ -30,6 +30,7 @@ RUN npm run build
# We are using Github Actions: redhat-actions/buildah-build@v2 which needs manual selection of arch in base image
# Remove TARGETARCH if docker buildx is supported in the CI release as --platform=$TARGETPLATFORM will be automatically set
ARG TARGETARCH
ARG TARGETPLATFORM
FROM ${TARGETARCH}/nginx:stable-alpine AS cyberchef
COPY --from=builder /app/build/prod /usr/share/nginx/html/