diff --git a/.goreleaser.yml b/.goreleaser.yml index d4d68cbe2e..8fa3bbf07d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -17,10 +17,38 @@ before: snapshot: name_template: "{{ .Version }}" +checksum: + name_template: "checksums.txt" changelog: disable: true builds: + - id: client + main: cmd/client/main.go + binary: bin/egctl + env: + - CGO_ENABLED=0 + goos: + - linux + ldflags: + - -s -w + - -X github.com/easegress-io/easegress/v2/pkg/version.RELEASE={{ .Tag }} + - -X github.com/easegress-io/easegress/v2/pkg/version.COMMIT={{.Commit}} + - -X github.com/easegress-io/easegress/v2/pkg/version.REPO=chainbase-labs/easegress-providerproxy + + - id: builder + main: cmd/builder/main.go + binary: bin/egbuilder + env: + - CGO_ENABLED=0 + goos: + - linux + ldflags: + - -s -w + - -X github.com/easegress-io/easegress/v2/pkg/version.RELEASE={{ .Tag }} + - -X github.com/easegress-io/easegress/v2/pkg/version.COMMIT={{.Commit}} + - -X github.com/easegress-io/easegress/v2/pkg/version.REPO=chainbase-labs/easegress-providerproxy + - id: server main: cmd/server/main.go binary: bin/easegress-server @@ -28,7 +56,6 @@ builds: - CGO_ENABLED=0 goos: - linux - - darwin ldflags: - -s -w - -X github.com/easegress-io/easegress/v2/pkg/version.RELEASE={{ .Tag }} @@ -46,7 +73,9 @@ dockers: goos: linux goarch: amd64 ids: + - client - server + - builder dockerfile: build/package/Dockerfile.goreleaser