diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a2d09582..4d8efead 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -93,6 +93,7 @@ jobs: BUILD_DATE=${{ steps.vars.outputs.build_date }} COMMIT=${{ steps.vars.outputs.commit }} VERSION=${{ steps.vars.outputs.version }} + ALLTARGETPLATFORMS=${{ steps.vars.outputs.platforms }} tags: | qmcgaw/gluetun:${{ steps.vars.outputs.version }} qmcgaw/private-internet-access:${{ steps.vars.outputs.version }} diff --git a/Dockerfile b/Dockerfile index 4f9f1e5d..c428fcf7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,9 +36,11 @@ RUN git init && \ FROM --platform=$BUILDPLATFORM base AS build COPY --from=qmcgaw/xcputranslate:v0.6.0 /xcputranslate /usr/local/bin/xcputranslate ARG TARGETPLATFORM +ARG ALLTARGETPLATFORMS=${TARGETPLATFORM} ARG VERSION=unknown ARG BUILD_DATE="an unknown date" ARG COMMIT=unknown +RUN xcputranslate sleep -targetplatform ${TARGETPLATFORM} -buildtime=10s -order=${ALLTARGETPLATFORMS} RUN GOARCH="$(xcputranslate translate -field arch -targetplatform ${TARGETPLATFORM})" \ GOARM="$(xcputranslate translate -field arm -targetplatform ${TARGETPLATFORM})" \ go build -trimpath -ldflags="-s -w \