File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
FROM scratch
2
- ARG GOARCH=amd64
3
2
3
+ ARG VERSION
4
+ LABEL name="arangodb-exporter" \
5
+ vendor="ArangoDB" \
6
+ version="${VERSION}" \
7
+ release="${VERSION}" \
8
+ summary="ArangoDD Exporter" \
9
+ description="ArangoDB Exporter" \
10
+
11
+
12
+ ADD ./LICENSE /licenses/LICENSE
13
+
14
+ ARG GOARCH=amd64
4
15
COPY bin/linux/${GOARCH}/arangodb-exporter /app/
5
16
6
17
EXPOSE 9101
Original file line number Diff line number Diff line change @@ -89,12 +89,12 @@ run-tests:
89
89
90
90
docker : check-vars build
91
91
for arch in $( ARCHS) ; do \
92
- docker build --build-arg= GOARCH=$$ arch -t $(DOCKERIMAGE ) -$$ arch -f Dockerfile.scratch . ; \
92
+ docker build --build-arg " GOARCH=$$ arch" --build-arg " VERSION= $( VERSION_MAJOR_MINOR_PATCH ) " -t $(DOCKERIMAGE ) -$$ arch -f Dockerfile.scratch . ; \
93
93
docker push $(DOCKERIMAGE ) -$$ arch ; \
94
94
done
95
95
for arch in amd64; do \
96
96
sed -e ' s|FROM scratch|FROM $(UBI)|' Dockerfile.scratch > Dockerfile.ubi ; \
97
- docker build --build-arg= GOARCH=$$ arch -t $(DOCKERIMAGE ) -ubi -f Dockerfile.ubi . ; \
97
+ docker build --build-arg " GOARCH=$$ arch" --build-arg " VERSION= $( VERSION_MAJOR_MINOR_PATCH ) " -t $(DOCKERIMAGE ) -ubi -f Dockerfile.ubi . ; \
98
98
rm -f Dockerfile.ubi ; \
99
99
docker push $(DOCKERIMAGE ) -ubi ; \
100
100
done
You can’t perform that action at this time.
0 commit comments