From 4717b49701a6a76fe264c7956ce8fd11fda7a2df Mon Sep 17 00:00:00 2001 From: James Wells Date: Thu, 26 Dec 2024 18:26:41 -0800 Subject: [PATCH] Version is not propagating on CI/CD build. --- assets/docker/Dockerfile | 2 +- cmd/gagent/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/docker/Dockerfile b/assets/docker/Dockerfile index 2a28e33..cf3606b 100644 --- a/assets/docker/Dockerfile +++ b/assets/docker/Dockerfile @@ -9,7 +9,7 @@ ARG GOOS=${GOOS:-linux} ARG CGO_ENABLED=1 RUN apk add --no-cache zeromq-dev build-base git -RUN go build -o /gagent/bin/gagent -ldflags "-X main.semVER=${SEMVER}" cmd/gagent/main.go +RUN go build -o /gagent/bin/gagent -ldflags "-X main.Version=${SEMVER}" cmd/gagent/main.go RUN strip /gagent/bin/gagent FROM alpine:3.20 diff --git a/cmd/gagent/main.go b/cmd/gagent/main.go index fb55f87..196abf1 100644 --- a/cmd/gagent/main.go +++ b/cmd/gagent/main.go @@ -68,7 +68,7 @@ var wg sync.WaitGroup /* * Set version */ -var Version = "0.0.11" +var Version = "0.0.1" /* * This is the main function, and it assumes that the configuration file has