File tree Expand file tree Collapse file tree 4 files changed +33
-15
lines changed Expand file tree Collapse file tree 4 files changed +33
-15
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ updates :
3
+ - package-ecosystem : gomod
4
+ directory : " /"
5
+ schedule :
6
+ interval : daily
Original file line number Diff line number Diff line change @@ -11,16 +11,16 @@ jobs:
11
11
steps :
12
12
- name : Check out code
13
13
uses : actions/checkout@v4
14
+ with :
15
+ fetch-depth : 0
14
16
- name : Setup go env
15
17
uses : actions/setup-go@master
16
18
with :
17
- go-version : " 1.20 "
19
+ go-version : " 1.21 "
18
20
- name : goreleaser with tag
19
21
uses : goreleaser/goreleaser-action@v5
20
22
with :
21
23
version : latest
22
24
args : release --rm-dist
23
25
env :
24
26
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
-
26
-
Original file line number Diff line number Diff line change 1
1
project_name : harbor
2
2
3
+ before :
4
+ hooks :
5
+ - go mod tidy
6
+
3
7
builds :
4
- - main : ./cmd/harbor
5
- binary : ./harbor
8
+ - main : ./cmd/harbor/main.go
9
+
6
10
env :
7
- - CGO_ENABLED=0
11
+ - CGO_ENABLED=0
8
12
ldflags :
9
13
- -w -s -X github.com/goharbor/harbor-cli/cmd/harbor/internal/version.GitCommit={{.FullCommit}}
10
14
goos :
@@ -14,24 +18,32 @@ builds:
14
18
goarch :
15
19
- amd64
16
20
- arm64
17
- - arm
21
+ - arm
18
22
ignore :
19
23
- goos : windows
20
24
goarch : arm
21
25
- goos : windows
22
26
goarch : arm64
23
27
archives :
24
- - format : tar.gz
25
- format_overrides :
26
- - goos : windows
27
- format : zip
28
+ - format : tar.gz
29
+ format_overrides :
30
+ - goos : windows
31
+ format : zip
32
+
33
+ checksum :
34
+ name_template : ' checksums.txt'
35
+
36
+ snapshot :
37
+ name_template : " {{ .Tag }}-next"
38
+
28
39
release :
29
- draft : true
30
- prerelease : auto
40
+ name_template : " HarborCLI {{.Tag}}"
41
+ # draft: true
42
+ # prerelease: auto
31
43
32
44
changelog :
33
45
sort : asc
34
46
filters :
35
47
exclude :
36
48
- " ^docs:"
37
- - " ^test:"
49
+ - " ^test:"
Original file line number Diff line number Diff line change 1
1
module github.com/goharbor/harbor-cli
2
2
3
- go 1.20
3
+ go 1.21
4
4
5
5
require github.com/spf13/cobra v1.7.0
6
6
You can’t perform that action at this time.
0 commit comments