Skip to content

Commit

Permalink
feat: build server ci
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanViast committed Oct 9, 2024
1 parent 07b1385 commit c2c305a
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,45 @@ 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
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
ldflags:
- -s -w
- -X github.com/easegress-io/easegress/v2/pkg/version.RELEASE={{ .Tag }}
Expand All @@ -46,7 +73,9 @@ dockers:
goos: linux
goarch: amd64
ids:
- client
- server
- builder

dockerfile: build/package/Dockerfile.goreleaser

Expand Down

0 comments on commit c2c305a

Please sign in to comment.