File tree 2 files changed +46
-26
lines changed
2 files changed +46
-26
lines changed Original file line number Diff line number Diff line change 16
16
- name : Set up Go
17
17
uses : actions/setup-go@v2
18
18
with :
19
- go-version : ' 1.15'
19
+ go-version : " 1.15"
20
20
- name : Login to DockerHub
21
21
uses : docker/login-action@v1
22
22
with :
30
30
version : latest
31
31
args : --rm-dist
32
32
env :
33
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+ GITHUB_TOKEN : ${{ secrets.GO_RELEASER_TOKEN }}
Original file line number Diff line number Diff line change 1
1
project_name : guardian
2
2
3
+ release :
4
+ draft : true
5
+ prerelease : auto
6
+
7
+ before :
8
+ hooks :
9
+ - go mod tidy
10
+ - make clean
11
+
3
12
builds :
4
13
- main : ./main.go
5
14
id : " guardian"
@@ -8,17 +17,11 @@ builds:
8
17
- -a
9
18
ldflags :
10
19
- -s -w -X github.com/odpf/guardian/main.Version={{.Tag}} -X github.com/odpf/guardian/main.BuildCommit={{.FullCommit}} -X github.com/odpf/guardian/main.BuildDate={{.Date}}
11
- goos :
12
- - linux
13
- - darwin
14
- - windows
15
- goarch :
16
- - amd64
17
- - 386
18
- - arm
19
- - arm64
20
+ goos : [darwin, linux, windows]
21
+ goarch : [amd64, 386, arm, arm64]
20
22
env :
21
23
- CGO_ENABLED=0
24
+
22
25
archives :
23
26
- replacements :
24
27
darwin : macos
@@ -29,28 +32,45 @@ archives:
29
32
format_overrides :
30
33
- goos : windows
31
34
format : zip
32
- release :
33
- draft : true
34
- prerelease : auto
35
- checksum :
36
- name_template : ' checksums.txt'
37
- snapshot :
38
- name_template : " {{ .Tag }}-next"
35
+
39
36
changelog :
40
37
sort : asc
41
38
filters :
42
39
exclude :
43
- - ' ^docs:'
44
- - ' ^test:'
45
- - ' ^build:'
40
+ - " ^docs:"
41
+ - " ^test:"
42
+ - " ^build:"
43
+
44
+ checksum :
45
+ name_template : " checksums.txt"
46
+
47
+ snapshot :
48
+ name_template : " {{ .Tag }}-next"
49
+
46
50
dockers :
47
- -
48
- goos : linux
51
+ - goos : linux
49
52
goarch : amd64
50
53
ids :
51
54
- guardian
52
55
dockerfile : Dockerfile
53
56
image_templates :
54
- - ' docker.io/odpf/{{.ProjectName}}:latest'
55
- - ' docker.io/odpf/{{.ProjectName}}:{{ .Version }}'
56
- - ' docker.io/odpf/{{.ProjectName}}:{{ .Tag }}-amd64'
57
+ - " docker.io/odpf/{{.ProjectName}}:latest"
58
+ - " docker.io/odpf/{{.ProjectName}}:{{ .Version }}"
59
+ - " docker.io/odpf/{{.ProjectName}}:{{ .Tag }}-amd64"
60
+
61
+ brews :
62
+ - name : guardian
63
+ homepage : " https://github.com/odpf/guardian"
64
+ description : " Metadata collection tool."
65
+ tap :
66
+ owner : odpf
67
+ name : homebrew-taps
68
+ license : " Apache 2.0"
69
+ folder : Formula
70
+ dependencies :
71
+ - name : git
72
+ install : |-
73
+ bin.install "guardian"
74
+ commit_author :
75
+ name : Ravi Suhag
76
+
You can’t perform that action at this time.
0 commit comments