File tree 2 files changed +81
-0
lines changed
2 files changed +81
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ push :
4
+ tags :
5
+ - ' v*'
6
+
7
+ permissions :
8
+ contents : write
9
+ packages : write
10
+
11
+ jobs :
12
+ goreleaser :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v4
17
+ with :
18
+ fetch-depth : 0
19
+ - name : Set up Go
20
+ uses : actions/setup-go@v5
21
+ - uses : ko-build/setup-ko@v0.6
22
+ - name : Run GoReleaser
23
+ uses : goreleaser/goreleaser-action@v6
24
+ with :
25
+ distribution : goreleaser
26
+ version : ' ~> v2'
27
+ args : release --clean
28
+ env :
29
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2
+ # vim: set ts=2 sw=2 tw=0 fo=cnqoj
3
+
4
+ version : 2
5
+
6
+ before :
7
+ hooks :
8
+ # You may remove this if you don't use go modules.
9
+ - go mod tidy
10
+ # you may remove this if you don't need go generate
11
+ - go generate ./...
12
+
13
+ builds :
14
+ - env :
15
+ - CGO_ENABLED=0
16
+ goos :
17
+ - linux
18
+ main : ./cmd
19
+ binary : spire-ha-agent
20
+
21
+ archives :
22
+ - format : tar.gz
23
+ # this name template makes the OS and Arch compatible with the results of `uname`.
24
+ name_template : >-
25
+ {{ .ProjectName }}_
26
+ {{- title .Os }}_
27
+ {{- if eq .Arch "amd64" }}x86_64
28
+ {{- else if eq .Arch "386" }}i386
29
+ {{- else }}{{ .Arch }}{{ end }}
30
+ {{- if .Arm }}v{{ .Arm }}{{ end }}
31
+ # use zip for windows archives
32
+ format_overrides :
33
+ - goos : windows
34
+ format : zip
35
+
36
+ changelog :
37
+ sort : asc
38
+ filters :
39
+ exclude :
40
+ - " ^docs:"
41
+ - " ^test:"
42
+
43
+ kos :
44
+ - repository : ghcr.io/spiffe/spire-ha-agent
45
+ tags :
46
+ - " {{.Version}}"
47
+ - latest
48
+ bare : true
49
+ preserve_import_paths : false
50
+ platforms :
51
+ - linux/amd64
52
+ - linux/arm64
You can’t perform that action at this time.
0 commit comments