chore(ci): rename created -> date versioning variable

- to match goreleaser default ldflags `main.date`
- rename Dockerfile ldflag from created to date
- remove goreleaser custom ldflags and use defaults ones
This commit is contained in:
Quentin McGaw
2024-02-03 07:55:33 +00:00
parent 3935b3640b
commit 1c80aaa3ec
4 changed files with 5 additions and 7 deletions

View File

@@ -58,7 +58,7 @@ RUN GOARCH="$(xcputranslate translate -targetplatform ${TARGETPLATFORM} -field a
GOARM="$(xcputranslate translate -targetplatform ${TARGETPLATFORM} -field arm)" \
go build -trimpath -ldflags="-s -w \
-X 'main.version=$VERSION' \
-X 'main.created=$CREATED' \
-X 'main.date=$CREATED' \
-X 'main.commit=$COMMIT' \
" -o app cmd/updater/main.go