From 2e4d80d9bc578e804f369ebd270dbd4427601bae Mon Sep 17 00:00:00 2001 From: "Quentin McGaw (desktop)" Date: Mon, 21 Jun 2021 18:35:40 +0000 Subject: [PATCH] Maintenance: sleep for cross building --- .github/workflows/build.yml | 1 + Dockerfile | 2 ++ 2 files changed, 3 insertions(+) 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 \