Skip to content

Commit a42c7de

Browse files
committed
test buildah platforms flag environment variables
1 parent b85036b commit a42c7de

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/releases.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
tags: ${{ steps.image-metadata.outputs.tags }}
6363
labels: ${{ steps.image-metadata.outputs.labels }}
6464
containerfiles: ./Dockerfile
65-
archs: amd64,arm64v8,arm32v7
65+
platforms: linux/amd64,linux/arm64
6666
oci: true
6767
# enable build layer caching between platforms
6868
layers: true

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ RUN npm run build
3030
# We are using Github Actions: redhat-actions/buildah-build@v2 which needs manual selection of arch in base image
3131
# Remove TARGETARCH if docker buildx is supported in the CI release as --platform=$TARGETPLATFORM will be automatically set
3232
ARG TARGETARCH
33+
ARG TARGETPLATFORM
3334
FROM ${TARGETARCH}/nginx:stable-alpine AS cyberchef
3435

3536
COPY --from=builder /app/build/prod /usr/share/nginx/html/

0 commit comments

Comments
 (0)