Version is not propagating on CI/CD build.
All checks were successful
G'Agent Scan, Build, and Test / scan (push) Successful in 1m36s
G'Agent Scan, Build, and Test / build_simple (push) Successful in 1m16s
G'Agent Scan, Build, and Test / test_simple (push) Successful in 15s
G'Agent Scan, Build, and Test / build_image (push) Successful in 1m30s

This commit is contained in:
James Wells 2024-12-26 18:26:41 -08:00
parent 07215828b8
commit 4717b49701
Signed by: jwells
GPG key ID: 73196D10B8E65666
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ ARG GOOS=${GOOS:-linux}
ARG CGO_ENABLED=1 ARG CGO_ENABLED=1
RUN apk add --no-cache zeromq-dev build-base git 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 RUN strip /gagent/bin/gagent
FROM alpine:3.20 FROM alpine:3.20

View file

@ -68,7 +68,7 @@ var wg sync.WaitGroup
/* /*
* Set version * 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 * This is the main function, and it assumes that the configuration file has