From fd9b71807d7db4ef6a3e79bde8eb3e10915484a5 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Fri, 14 Oct 2022 11:01:22 +0200 Subject: [PATCH] dockerfile: release frontend for mips platforms Signed-off-by: CrazyMax --- .github/workflows/build.yml | 2 ++ frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 079c7e85530c..81034866cb3c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -449,6 +449,7 @@ jobs: run: | ./frontend/dockerfile/cmd/dockerfile-frontend/hack/release "${{ needs.frontend-base.outputs.typ }}" "${{ needs.frontend-base.outputs.tag }}" "$DF_REPO_SLUG_TARGET" "${{ needs.frontend-base.outputs.push }}" env: + PLATFORMS: ${{ env.PLATFORMS }},linux/mips,linux/mipsle,linux/mips64,linux/mips64le CACHE_FROM: type=gha,scope=frontend-${{ needs.frontend-base.outputs.typ }} CACHE_TO: type=gha,scope=frontend-${{ needs.frontend-base.outputs.typ }} - @@ -457,4 +458,5 @@ jobs: run: | ./frontend/dockerfile/cmd/dockerfile-frontend/hack/release "${{ needs.frontend-base.outputs.typ }}" labs "$DF_REPO_SLUG_TARGET" "${{ needs.frontend-base.outputs.push }}" env: + PLATFORMS: ${{ env.PLATFORMS }},linux/mips,linux/mipsle,linux/mips64,linux/mips64le CACHE_FROM: type=gha,scope=frontend-${{ needs.frontend-base.outputs.typ }} diff --git a/frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile b/frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile index e71903902426..23b1fd288fa0 100644 --- a/frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile +++ b/frontend/dockerfile/cmd/dockerfile-frontend/Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile-upstream:master # xx is a helper for cross-compilation -FROM --platform=$BUILDPLATFORM tonistiigi/xx:golang@sha256:810dc54d5144f133a218e88e319184bf8b9ce01d37d46ddb37573e90decd9eef AS xx +FROM --platform=$BUILDPLATFORM tonistiigi/xx:master@sha256:d4254d9739ce2de9fb88e09bdc716aa0c65f0446a2a2143399f991d71136a3d4 AS xx FROM --platform=$BUILDPLATFORM golang:1.19-alpine AS base RUN apk add git bash