@@ -6,34 +6,34 @@ before:
66 - go mod tidy
77
88builds :
9- - main : ./cmd/harbor/main.go
10- env :
11- - CGO_ENABLED=0
12- ldflags :
13- - -w -s -X github.com/goharbor/harbor-cli/cmd/harbor/internal/version.GitCommit={{.FullCommit}}
14- - -X github.com/goharbor/harbor-cli/cmd/harbor/internal/version.Version={{.Tag}}
15- goos :
16- - linux
17- - windows
18- - darwin
19- goarch :
20- - amd64
21- - arm64
22- ignore :
23- - goos : windows
24- goarch : arm
25- - goos : windows
26- goarch : arm64
27- mod_timestamp : " {{ .CommitTimestamp }}"
9+ - main : ./cmd/harbor/main.go
10+ env :
11+ - CGO_ENABLED=0
12+ ldflags :
13+ - -w -s -X github.com/goharbor/harbor-cli/cmd/harbor/internal/version.GitCommit={{.FullCommit}}
14+ - -X github.com/goharbor/harbor-cli/cmd/harbor/internal/version.Version={{.Tag}}
15+ goos :
16+ - linux
17+ - windows
18+ - darwin
19+ goarch :
20+ - amd64
21+ - arm64
22+ ignore :
23+ - goos : windows
24+ goarch : arm
25+ - goos : windows
26+ goarch : arm64
27+ mod_timestamp : " {{ .CommitTimestamp }}"
2828
2929archives :
30- - format : tar.gz
30+ - formats : [" tar.gz"]
3131 format_overrides :
3232 - goos : windows
33- format : zip
33+ formats : ["zip"]
34+
3435nfpms :
35- -
36- homepage : https://github.com/goharbor/harbor-cli/
36+ - homepage : https://github.com/goharbor/harbor-cli/
3737 maintainer : Harbor Community
3838 description : |-
3939 CLI for Harbor Container Registry
@@ -47,37 +47,35 @@ sboms:
4747 - artifacts : archive
4848
4949checksum :
50- name_template : ' checksums.txt'
50+ name_template : " checksums.txt"
5151
5252snapshot :
5353 version_template : " {{ incpatch .Version }}-next"
5454
5555release :
5656 name_template : " HarborCLI {{.Tag}}"
57- draft : true # Set to false to ensure that releases are published, not kept as drafts
58- prerelease : auto # Auto-detect prereleases based on tag
57+ draft : true # Set to false to ensure that releases are published, not kept as drafts
58+ prerelease : auto # Auto-detect prereleases based on tag
5959 replace_existing_draft : true
6060 replace_existing_artifacts : true
61- disable : false # Ensure release publishing is enabled
61+ disable : false # Ensure release publishing is enabled
6262 github :
63- owner : goharbor # Your GitHub repository owner
64- name : harbor-cli # Your GitHub repository name
63+ owner : goharbor # Your GitHub repository owner
64+ name : harbor-cli # Your GitHub repository name
6565
66- # https://goreleaser.com/customization/homebrew/
67- brews :
68- - repository :
69- owner : goharbor # GitHub user/org who owns the tap repo
70- name : homebrew-tap # Tap repo name (i.e., goharbor/homebrew-tap)
66+ # https://goreleaser.com/customization/homebrew_casks/
67+ homebrew_casks :
68+ - name : harbor-cli # Name of the CLI, becomes harbor-cli.rb
69+ description : " Harbor CLI for interacting with Harbor registry" # Formula description
70+ homepage : " https://goharbor.io"
71+ repository :
72+ owner : goharbor # GitHub user/org who owns the tap repo
73+ name : homebrew-tap # Tap repo name (i.e., goharbor/homebrew-tap)
7174 branch : main
72- name : harbor-cli # Name of the CLI, becomes harbor-cli.rb
73- commit_author : # Who commits to the tap repo
75+ commit_author : # Who commits to the tap repo
7476 name : goreleaserbot
75777678 commit_msg_template : " Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
77- homepage : " https://goharbor.io"
78- description : " Harbor CLI for interacting with Harbor registry" # Formula description
79- test : |
80- system "#{bin}/harbor-cli", "version" # Formula test (after install)
8179
8280changelog :
8381 use : github
0 commit comments