File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ ARG COMMIT
55FROM --platform=linux/$TARGETARCH brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.23 as builder
66
77ARG TARGETARCH=amd64
8- ARG VERSION="unknown "
8+ ARG BUILDVERSION="1.8.0 "
99ARG COMMIT
1010
1111WORKDIR /opt/app-root
@@ -19,7 +19,7 @@ COPY go.mod go.mod
1919COPY go.sum go.sum
2020
2121# Build
22- RUN GOARCH=$TARGETARCH go build -ldflags "-X 'main.buildVersion=${VERSION}-${COMMIT }' -X 'main.buildDate=`date +%Y-%m-%d\ %H:%M`'" -mod vendor -a -o bin/netobserv-ebpf-agent cmd/netobserv-ebpf-agent.go
22+ RUN GOARCH=$TARGETARCH go build -ldflags "-X 'main.buildVersion=${BUILDVERSION }' -X 'main.buildDate=`date +%Y-%m-%d\ %H:%M`'" -mod vendor -a -o bin/netobserv-ebpf-agent cmd/netobserv-ebpf-agent.go
2323
2424# Create final image from minimal + built binary
2525FROM --platform=linux/$TARGETARCH registry.access.redhat.com/ubi9/ubi-minimal:9.5-1738816775
@@ -38,7 +38,7 @@ LABEL io.k8s.description="Network Observability eBPF Agent"
3838LABEL summary="Network Observability eBPF Agent"
3939LABEL maintainer="
[email protected] "
4040LABEL io.openshift.tags="network-observability-ebpf-agent"
41- LABEL upstream-vcs-ref=" $COMMIT"
41+ LABEL upstream-vcs-ref=$COMMIT
4242LABEL upstream-vcs-type="git"
4343LABEL description="The Network Observability eBPF Agent allows collecting and aggregating all the ingress and egress flows on a Linux host."
44- LABEL version="1.8.0"
44+ LABEL version=$BUILDVERSION
You can’t perform that action at this time.
0 commit comments