File tree 2 files changed +32
-37
lines changed
2 files changed +32
-37
lines changed Original file line number Diff line number Diff line change 6
6
- " v*"
7
7
8
8
jobs :
9
- release :
9
+ goreleaser :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - name : Checkout
12
+ - name : Checkout code
13
13
uses : actions/checkout@v2
14
14
with :
15
15
fetch-depth : 0
@@ -24,10 +24,10 @@ jobs:
24
24
username : ${{ secrets.DOCKERHUB_USERNAME }}
25
25
password : ${{ secrets.DOCKERHUB_TOKEN }}
26
26
- name : Run GoReleaser
27
- uses : goreleaser/goreleaser-action@v2.6.1
27
+ uses : goreleaser/goreleaser-action@v4
28
28
with :
29
29
distribution : goreleaser
30
30
version : latest
31
- args : --rm-dist
31
+ args : release --clean
32
32
env :
33
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 :
3
4
prerelease : auto
5
+
4
6
before :
5
7
hooks :
6
8
- go mod tidy
7
9
- make clean
10
+
11
+ changelog :
12
+ use : github
13
+ sort : asc
14
+ filters :
15
+ exclude :
16
+ - " ^docs:"
17
+ - " ^test:"
18
+ - " ^build:"
19
+
8
20
builds :
9
21
- id : " guardian"
10
22
main : ./main.go
11
23
binary : guardian
12
- flags :
13
- - -a
24
+ flags : [-a]
14
25
ldflags :
15
26
- -X github.com/raystack/guardian/core.Version={{.Tag}}
16
27
- -X github.com/raystack/guardian/core.BuildCommit={{.FullCommit}}
@@ -19,37 +30,20 @@ builds:
19
30
goarch : [amd64, 386, arm, arm64]
20
31
env :
21
32
- CGO_ENABLED=0
33
+
22
34
archives :
23
- - replacements :
24
- darwin : macos
25
- linux : linux
26
- windows : windows
27
- 386 : i386
28
- amd64 : x86_64
35
+ - id : " archives"
29
36
format_overrides :
30
37
- goos : windows
31
38
format : zip
32
- changelog :
33
- sort : asc
34
- filters :
35
- exclude :
36
- - " ^docs:"
37
- - " ^test:"
38
- - " ^build:"
39
- checksum :
40
- name_template : " checksums.txt"
41
- snapshot :
42
- name_template : " {{ .Tag }}-next"
39
+
43
40
dockers :
44
- - goos : linux
45
- goarch : amd64
46
- ids :
47
- - guardian
48
- dockerfile : Dockerfile
41
+ - id : dockerhub
49
42
image_templates :
50
43
- " docker.io/raystack/{{.ProjectName}}:latest"
51
44
- " docker.io/raystack/{{.ProjectName}}:{{ .Version }}"
52
45
- " docker.io/raystack/{{.ProjectName}}:{{ .Tag }}-amd64"
46
+
53
47
nfpms :
54
48
- maintainer : Raystack
55
49
description : Universal data access tool
@@ -58,15 +52,16 @@ nfpms:
58
52
formats :
59
53
- deb
60
54
- rpm
61
- replacements :
62
- darwin : macOS
63
- scoop :
64
- bucket :
65
- owner : raystack
66
- name : scoop-bucket
67
- homepage : " https://github.com/raystack/guardian"
68
- description : " Universal data access tool"
69
- license : Apache 2.0
55
+ - apk
56
+
57
+ scoops :
58
+ - homepage : " https://github.com/raystack/guardian"
59
+ description : " Universal data access tool"
60
+ license : Apache 2.0
61
+ bucket :
62
+ owner : raystack
63
+ name : scoop-bucket
64
+
70
65
brews :
71
66
- name : guardian
72
67
homepage : " https://github.com/raystack/guardian"
You can’t perform that action at this time.
0 commit comments