mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-19 22:45:07 -04:00
test buildah platforms flag environment variables
This commit is contained in:
parent
b85036b78f
commit
a42c7de112
2 changed files with 2 additions and 1 deletions
2
.github/workflows/releases.yml
vendored
2
.github/workflows/releases.yml
vendored
|
@ -62,7 +62,7 @@ jobs:
|
||||||
tags: ${{ steps.image-metadata.outputs.tags }}
|
tags: ${{ steps.image-metadata.outputs.tags }}
|
||||||
labels: ${{ steps.image-metadata.outputs.labels }}
|
labels: ${{ steps.image-metadata.outputs.labels }}
|
||||||
containerfiles: ./Dockerfile
|
containerfiles: ./Dockerfile
|
||||||
archs: amd64,arm64v8,arm32v7
|
platforms: linux/amd64,linux/arm64
|
||||||
oci: true
|
oci: true
|
||||||
# enable build layer caching between platforms
|
# enable build layer caching between platforms
|
||||||
layers: true
|
layers: true
|
||||||
|
|
|
@ -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
|
# 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
|
# Remove TARGETARCH if docker buildx is supported in the CI release as --platform=$TARGETPLATFORM will be automatically set
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
ARG TARGETPLATFORM
|
||||||
FROM ${TARGETARCH}/nginx:stable-alpine AS cyberchef
|
FROM ${TARGETARCH}/nginx:stable-alpine AS cyberchef
|
||||||
|
|
||||||
COPY --from=builder /app/build/prod /usr/share/nginx/html/
|
COPY --from=builder /app/build/prod /usr/share/nginx/html/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue