11version : 2
22project_name : opslevel-agent
3+
34before :
45 hooks :
56 - go mod tidy
@@ -13,6 +14,9 @@ builds:
1314 goos :
1415 - linux
1516 - darwin
17+ ignore :
18+ - goos : darwin
19+ goarch : ' 386'
1620 binary : ' {{ .ProjectName }}'
1721
1822universal_binaries :
@@ -28,21 +32,52 @@ archives:
2832 {{- else if eq .Arch "386" }}i386
2933 {{- else }}{{ .Arch }}{{ end }}
3034 {{- if .Arm }}v{{ .Arm }}{{ end }}
35+ format_overrides :
36+ - goos : windows
37+ formats : zip
3138
3239dockers :
33- - image_templates :
34- - " public.ecr.aws/opslevel/opslevel-agent:latest"
35- - " public.ecr.aws/opslevel/opslevel-agent:{{ .Tag }}"
40+ -
41+ dockerfile : Dockerfile
42+ use : buildx
43+ image_templates :
44+ - " public.ecr.aws/opslevel/opslevel-agent:{{ .Tag }}-amd64"
45+ build_flag_templates :
46+ - " --label=org.opencontainers.image.created={{ .Date }}"
47+ - " --label=org.opencontainers.image.revision={{ .FullCommit }}"
48+ - " --label=org.opencontainers.image.version={{ .Tag }}"
49+ - " --build-arg=VERSION={{ .Tag }}"
50+ - " --platform=linux/amd64"
51+ goos : linux
52+ goarch : amd64
53+ -
54+ dockerfile : Dockerfile
55+ use : buildx
56+ image_templates :
57+ - " public.ecr.aws/opslevel/opslevel-agent:{{ .Tag }}-arm64"
3658 build_flag_templates :
3759 - " --label=org.opencontainers.image.created={{ .Date }}"
3860 - " --label=org.opencontainers.image.revision={{ .FullCommit }}"
3961 - " --label=org.opencontainers.image.version={{ .Tag }}"
62+ - " --build-arg=VERSION={{ .Tag }}"
63+ - " --platform=linux/arm64"
64+ goos : linux
65+ goarch : arm64
66+
67+ docker_manifests :
68+ - name_template : " public.ecr.aws/opslevel/opslevel-agent:latest"
69+ image_templates :
70+ - " public.ecr.aws/opslevel/opslevel-agent:{{ .Tag }}-amd64"
71+ - " public.ecr.aws/opslevel/opslevel-agent:{{ .Tag }}-arm64"
72+ - name_template : " public.ecr.aws/opslevel/mcp:{{ .Tag }}"
73+ image_templates :
74+ - " public.ecr.aws/opslevel/opslevel-agent:{{ .Tag }}-amd64"
75+ - " public.ecr.aws/opslevel/opslevel-agent:{{ .Tag }}-arm64"
4076
4177brews :
4278 - name : opslevel-agent
4379 description : " Main repository for the OpsLevel agent"
4480 homepage : " https://www.opslevel.com/"
45- url_template : " https://github.com/opslevel/{{ .ProjectName }}/archive/refs/tags/{{ .Tag }}.tar.gz"
4681 commit_author :
4782 name : OpsLevel Bots
4883 email : bots@opslevel.com
@@ -59,16 +94,11 @@ brews:
5994 owner : OpsLevel
6095 name : homebrew-tap
6196 token : " {{ .Env.ORG_GITHUB_TOKEN }}"
62- pull_request :
63- enabled : true
64- draft : false
65- base :
66- owner : OpsLevel
67- name : homebrew-tap
68- branch : main
97+
6998checksum :
70- name_template : ' {{ .ProjectName }}_SHA256SUMS '
99+ name_template : ' {{ .ProjectName }}.sha256 '
71100 algorithm : sha256
101+
72102signs :
73103 - artifacts : checksum
74104 args :
@@ -85,9 +115,3 @@ changelog:
85115 filters :
86116 exclude :
87117 - " ^Merge"
88- release :
89- footer : >-
90-
91- ---
92-
93- Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
0 commit comments