Skip to content

Commit

Permalink
ci: fix .goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
zx06 authored Aug 18, 2021
1 parent f25585e commit abee4c7
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
builds:
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X github.com/zx06/ddnss/build.Version={{.Version}} -X github.com/zx06/ddnss/build.Commit={{.ShortCommit}} -X github.com/zx06/ddnss/build.BuildDate={{.Date}}
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
-
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X github.com/zx06/ddnss/build.Version={{.Version}} -X github.com/zx06/ddnss/build.Commit={{.ShortCommit}} -X github.com/zx06/ddnss/build.BuildDate={{.Date}}

archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip
dockers:
- dockerfile: .goreleaser.Dockerfile
-
dockerfile: .goreleaser.Dockerfile
use: buildx
build_flag_templates:
- "--pull"
Expand All @@ -31,4 +33,4 @@ dockers:
goarch: amd64
image_templates:
- "xzhuo/{{.ProjectName}}:{{ .Tag }}-amd64"
- "xzhuo/{{.ProjectName}}:v{{ .Major }}-amd64"
- "xzhuo/{{.ProjectName}}:v{{ .Major }}-amd64"

0 comments on commit abee4c7

Please sign in to comment.