File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ jobs:
111
111
with :
112
112
file : build/Dockerfile
113
113
context : ' .'
114
- target : local
114
+ target : goreleaser
115
115
platforms : ${{ github.event_name != 'pull_request' && env.DOCKER_PLATFORMS || '' }}
116
116
tags : ${{ steps.meta.outputs.tags }}
117
117
labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change @@ -25,8 +25,12 @@ FROM intermediate as container
25
25
COPY --from=builder /go/src/github.com/nginxinc/nginx-prometheus-exporter/nginx-prometheus-exporter /usr/bin/
26
26
27
27
28
- FROM intermediate as local
28
+ FROM intermediate as goreleaser
29
29
ARG TARGETARCH
30
30
ARG TARGETVARIANT
31
+ ARG TARGETPLATFORM
32
+
33
+ LABEL org.nginx.exporter.image.build.target="${TARGETPLATFORM}"
34
+ LABEL org.nginx.exporter.image.build.version="goreleaser"
31
35
32
36
COPY dist/nginx-prometheus-exporter_linux_$TARGETARCH${TARGETVARIANT:+_7}*/nginx-prometheus-exporter /usr/bin/
You can’t perform that action at this time.
0 commit comments