Skip to content

Commit 9a5742d

Browse files
committed
fix docker build
1 parent aa0bb79 commit 9a5742d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,3 @@ jobs:
5858
build-args: |
5959
VERSION=${{ github.ref_name }}
6060
COMMIT=${{ github.sha }}
61-
DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN go mod download
1313

1414
# Copy the source code and compile the gcx binary using ldflags.
1515
COPY . .
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.
1919
FROM golang:1.24-alpine

gcx.release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

1919
archives:
2020
- formats:

0 commit comments

Comments
 (0)