mirror of
https://github.com/bokysan/docker-postfix.git
synced 2024-11-10 08:55:39 +08:00
Fix: Refactor build to use native (platform) images and try rebuilding.
Consequentially, `linux/arm/v6` and `linux/riscv6` are not built, as there are no go images for these.
This commit is contained in:
parent
0fcfdcef4b
commit
33dec82e83
2 changed files with 4 additions and 3 deletions
|
@ -47,7 +47,8 @@ runs:
|
|||
context: postfix_exporter
|
||||
push: true
|
||||
tags: '${{ inputs.tags }}'
|
||||
platforms: "linux/386,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/riscv64"
|
||||
platforms: "linux/386,linux/amd64,linux/arm/v5,linux/arm/v7,linux/arm64/v8,linux/mips64le,linux/ppc64le,linux/s390x"
|
||||
# ,linux/arm/v6,,,,linux/arm64,,,,linux/riscv64"
|
||||
cache-from: type=local,src=/tmp/.buildx-cache/postfix-exporter,mode=max,compression=estargz
|
||||
cache-to: type=local,dest=/tmp/.buildx-cache-new/postfix-exporter
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
diff --git a/Dockerfile b/Dockerfile
|
||||
index a3327d8..2b13fbb 100644
|
||||
index a3327d8..1cdfa84 100644
|
||||
--- a/Dockerfile
|
||||
+++ b/Dockerfile
|
||||
@@ -1,4 +1,10 @@
|
||||
-FROM golang:1.16 AS builder
|
||||
+# syntax=docker/dockerfile:1.2
|
||||
+FROM --platform=$BUILDPLATFORM golang:1.21 AS builder
|
||||
+FROM golang:1.21.3-bookworm AS builder
|
||||
+ARG TARGETPLATFORM
|
||||
+ARG TARGETOS
|
||||
+ARG TARGETARCH
|
||||
|
|
Loading…
Reference in a new issue