Skip to content

Commit 536f823

Browse files
committed
Try updating the goreleaser file to latest best practices
1 parent 9a9c827 commit 536f823

1 file changed

Lines changed: 19 additions & 12 deletions

File tree

.goreleaser.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ project_name: opslevel-agent
33
before:
44
hooks:
55
- go mod tidy
6+
67
builds:
78
- env:
89
- CGO_ENABLED=0
@@ -12,19 +13,19 @@ builds:
1213
goos:
1314
- linux
1415
- darwin
15-
goarch:
16-
- amd64
17-
- '386'
18-
- arm
19-
- arm64
20-
ignore:
21-
- goos: darwin
22-
goarch: '386'
2316
binary: '{{ .ProjectName }}'
17+
2418
archives:
25-
- name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}'
26-
source:
27-
enabled: true
19+
- formats: [tar.gz]
20+
# this name template makes the OS and Arch compatible with the results of `uname`.
21+
name_template: >-
22+
{{ .ProjectName }}_
23+
{{- title .Os }}_
24+
{{- if eq .Arch "amd64" }}x86_64
25+
{{- else if eq .Arch "386" }}i386
26+
{{- else }}{{ .Arch }}{{ end }}
27+
{{- if .Arm }}v{{ .Arm }}{{ end }}
28+
2829
dockers:
2930
- image_templates:
3031
- "public.ecr.aws/opslevel/opslevel-agent:latest"
@@ -33,6 +34,7 @@ dockers:
3334
- "--label=org.opencontainers.image.created={{ .Date }}"
3435
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
3536
- "--label=org.opencontainers.image.version={{ .Tag }}"
37+
3638
brews:
3739
- name: opslevel-agent
3840
description: "Main repository for the OpsLevel agent"
@@ -74,10 +76,15 @@ signs:
7476
- "${signature}"
7577
- "--detach-sign"
7678
- "${artifact}"
79+
7780
changelog:
7881
sort: desc
7982
filters:
8083
exclude:
8184
- "^Merge"
8285
release:
83-
prerelease: auto
86+
footer: >-
87+
88+
---
89+
90+
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).

0 commit comments

Comments
 (0)