File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 6565 tags : ${{ steps.docker_metadata.outputs.tags }}
6666 labels : ${{ steps.docker_metadata.outputs.labels }}
6767 file : Dockerfile
68- build-args : BINARY=${{ matrix.binary }}
69- context : dist/${{ matrix.binary }}_linux_amd64_v1
68+ build-args : |
69+ BINARY=${{ matrix.binary }}
70+ TARGETPLATFORM=${{ matrix.binary }}_linux_amd64_v1
71+ context : dist
7072 check-tag :
7173 permissions :
7274 contents : read
Original file line number Diff line number Diff line change @@ -3,4 +3,6 @@ ARG BINARY=binary-build-arg-not-defined
33ENV BINARY=${BINARY}
44ENTRYPOINT ["sh" , "-c" ]
55CMD ["exec /${BINARY}" ]
6- COPY ${BINARY} /
6+ # TARGETPLATFORM is defined by goreleaser during the build
7+ ARG TARGETPLATFORM
8+ COPY ${TARGETPLATFORM}/${BINARY} /
You can’t perform that action at this time.
0 commit comments