Skip to content

Commit

Permalink
build artifacts respectively
Browse files Browse the repository at this point in the history
  • Loading branch information
kongfei605 committed Jun 24, 2022
1 parent 5b89d64 commit 3baf8ec
Showing 1 changed file with 36 additions and 3 deletions.
39 changes: 36 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,34 @@ changelog:
skip: true

builds:
- id: build
- id: build-docker
main: ./
binary: categraf
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X flashcat.cloud/categraf/config.Version={{ .Tag }}-{{.Commit}}
- id: build-linux-amd64
main: ./
binary: categraf
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
tags:
- enterprise
ldflags:
- -s -w
- -X flashcat.cloud/categraf/config.Version={{ .Tag }}-{{.Commit}}
- id: build-other
main: ./
binary: categraf
env:
Expand All @@ -22,12 +49,18 @@ builds:
goarch:
- amd64
- arm64
ignore:
- goos: linux
goarch: amd64
ldflags:
- -s -w
- -X flashcat.cloud/categraf/config.Version={{ .Tag }}-{{.Commit}}

archives:
- id: categraf
builds:
- build-linux-amd64
- build-other
format: tar.gz
format_overrides:
- goos: windows
Expand All @@ -49,7 +82,7 @@ dockers:
goos: linux
goarch: amd64
ids:
- build
- build-docker
dockerfile: docker/Dockerfile.goreleaser
extra_files:
- docker/entrypoint.sh
Expand Down Expand Up @@ -77,7 +110,7 @@ dockers:
goos: linux
goarch: arm64
ids:
- build
- build-docker
dockerfile: docker/Dockerfile.goreleaser
extra_files:
- docker/entrypoint.sh
Expand Down

0 comments on commit 3baf8ec

Please sign in to comment.