feat: include OS and arch in release binary name
Binary is now named node-lookup-linux-amd64 to match the target platform of the golang:latest build container. 💘 Generated with Crush Assisted-by: Claude Sonnet 4.6 via Crush <crush@charm.land>
This commit is contained in:
@@ -11,7 +11,8 @@ steps:
|
||||
image: golang:latest
|
||||
commands:
|
||||
- VERSION=${CI_COMMIT_TAG}
|
||||
- go build -ldflags="-s -w -X main.version=${VERSION}" -o node-lookup ./...
|
||||
- BINARY=node-lookup-linux-amd64
|
||||
- go build -ldflags="-s -w -X main.version=${VERSION}" -o ${BINARY} ./...
|
||||
depends_on: [test]
|
||||
|
||||
- name: release
|
||||
@@ -30,7 +31,7 @@ steps:
|
||||
NOTES=$(git log --merges --pretty=format:"- %s")
|
||||
fi
|
||||
tea releases edit "${CI_COMMIT_TAG}" --note "${NOTES}" --login gitea --repo "${CI_REPO}"
|
||||
tea releases assets create "${CI_COMMIT_TAG}" node-lookup --login gitea --repo "${CI_REPO}"
|
||||
tea releases assets create "${CI_COMMIT_TAG}" node-lookup-linux-amd64 --login gitea --repo "${CI_REPO}"
|
||||
backend_options:
|
||||
kubernetes:
|
||||
serviceAccountName: default
|
||||
|
||||
Reference in New Issue
Block a user