We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 317f9f0 + b1d309f commit 7b6a705Copy full SHA for 7b6a705
2 files changed
.github/workflows/build.yaml
@@ -65,8 +65,10 @@ jobs:
65
tags: ${{ steps.docker_metadata.outputs.tags }}
66
labels: ${{ steps.docker_metadata.outputs.labels }}
67
file: Dockerfile
68
- build-args: BINARY=${{ matrix.binary }}
69
- context: dist/${{ matrix.binary }}_linux_amd64_v1
+ build-args: |
+ BINARY=${{ matrix.binary }}
70
+ TARGETPLATFORM=${{ matrix.binary }}_linux_amd64_v1
71
+ context: dist
72
check-tag:
73
permissions:
74
contents: read
Dockerfile
@@ -3,4 +3,6 @@ ARG BINARY=binary-build-arg-not-defined
3
ENV BINARY=${BINARY}
4
ENTRYPOINT ["sh", "-c"]
5
CMD ["exec /${BINARY}"]
6
-COPY ${BINARY} /
+# TARGETPLATFORM is defined by goreleaser during the build
7
+ARG TARGETPLATFORM
8
+COPY ${TARGETPLATFORM}/${BINARY} /
0 commit comments