File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 5858 build-args : |
5959 VERSION=${{ github.ref_name }}
6060 COMMIT=${{ github.sha }}
61- DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ RUN go mod download
1313
1414# Copy the source code and compile the gcx binary using ldflags.
1515COPY . .
16- RUN CGO_ENABLED=0 go build -ldflags "-s -w -X main.version=${VERSION} -X main.commit=${COMMIT} -X main.date =${DATE}" -v -o ./bin/gcx ./cmd/gcx
16+ RUN CGO_ENABLED=0 go build -ldflags "-s -w -X main.version=${VERSION} -X main.commit=${COMMIT} -X main.buildDate =${DATE}" -v -o ./bin/gcx ./cmd/gcx
1717
1818# Final image based on Alpine with necessary packages.
1919FROM golang:1.24-alpine
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ builds:
1414 flags :
1515 - -trimpath
1616 ldflags :
17- - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date ={{.Date}}
17+ - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.buildDate ={{.Date}}
1818
1919archives :
2020 - formats :
You can’t perform that action at this time.
0 commit comments