1
- # documentation at https://goreleaser.com
2
1
project_name : gloomberg
3
2
4
3
# This is an example .goreleaser.yml file with some sensible defaults.
@@ -13,21 +12,10 @@ before:
13
12
# - oapi-codegen -package ensmetadata -old-config-style -generate types,client,spec internal/assets/ens_metadata_service_0.0.1-alpha.1.yaml > internal/ensmetadata/ensmetadata.go
14
13
builds :
15
14
- binary : gloomberg
16
- env :
17
- - CGO_ENABLED=0
18
- flags :
19
- - -trimpath
20
- goos :
21
- - linux
22
- - darwin
23
- - windows
24
- goarch :
25
- - amd64
26
- - arm64
27
-
28
- ignore :
29
- - goos : windows
30
- goarch : arm64
15
+ env : ["CGO_ENABLED=0"]
16
+ flags : ["-trimpath"]
17
+ goos : [linux, darwin]
18
+ goarch : [amd64, arm64]
31
19
32
20
# Set the modified timestamp on the output binary, typically
33
21
# you would do this to ensure a build was reproducible. Pass
@@ -50,70 +38,43 @@ universal_binaries:
50
38
replace : true
51
39
52
40
dockers :
53
- - image_templates : ["{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}-amd64", "{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest-amd64"]
54
- use : buildx
55
- dockerfile : .github/run.Dockerfile
56
- build_flag_templates : ["--platform=linux/amd64"]
57
- - image_templates : ["{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}-arm64v8", "{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest-arm64v8"]
58
- use : buildx
59
- goarch : arm64
60
- dockerfile : .github/run.Dockerfile
61
- build_flag_templates : ["--platform=linux/arm64/v8"]
41
+ - image_templates : ["{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}-amd64", "{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest-amd64"]
42
+ use : buildx
43
+ dockerfile : .github/run.Dockerfile
44
+ build_flag_templates : ["--platform=linux/amd64"]
45
+ - image_templates : ["{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}-arm64v8", "{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest-arm64v8"]
46
+ use : buildx
47
+ goarch : arm64
48
+ dockerfile : .github/run.Dockerfile
49
+ build_flag_templates : ["--platform=linux/arm64/v8"]
62
50
63
51
docker_manifests :
64
- - name_template : " {{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}"
65
- image_templates : ["{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}-amd64", "{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}-arm64v8"]
66
- - name_template : " {{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest"
67
- image_templates : ["{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest-amd64", "{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest-arm64v8"]
52
+ - name_template : " {{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}"
53
+ image_templates : ["{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}-amd64", "{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:{{ .Version }}-arm64v8"]
54
+ - name_template : " {{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest"
55
+ image_templates : ["{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest-amd64", "{{ .Env.REGISTRY }}/benleb/{{ .ProjectName }}:latest-arm64v8"]
56
+
57
+ kos :
58
+ - repository : " ghcr.io/benleb/gloomberg"
59
+ bare : true
60
+ preserve_import_paths : false
61
+ tags : ["{{.Tag}}", latest]
62
+ platforms : [linux/amd64, linux/arm64]
68
63
69
- # config the checksum filename
70
- # https://goreleaser.com/customization/checksum
71
- checksum :
72
- name_template : " checksums.txt"
64
+ # config the checksum filename | https://goreleaser.com/customization/checksum
65
+ checksum : { name_template: "checksums.txt" }
73
66
74
- snapshot :
75
- # name_template: "{{ incpatch .Version }}-dev"
76
- name_template : " {{ .Summary }}"
67
+ snapshot : { name_template: "{{ .Summary }}" }
77
68
78
- changelog :
79
- sort : asc
80
- filters :
81
- exclude :
82
- - ' ^docs:'
83
- - ' ^test:'
69
+ changelog : { sort: asc, filters: { exclude: ["^docs:", "^test:"] } }
84
70
85
71
announce :
86
72
telegram :
87
- # Whether its enabled or not.
88
- # Defaults to false.
89
- enabled : false
73
+ # Whether its enabled or not. Defaults to false.
74
+ enabled : true
90
75
91
76
# Integer representation of your channel
92
- chat_id : -575512868
93
-
94
- # Message template to use while publishing.
95
- # Defaults to `{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}`
96
- message_template : " 💸 🚀 🙌 {{ .ProjectName }} {{.Tag}} is out! → {{ .ReleaseURL }} 🙌 🚀 💸"
97
-
98
- # gomod:
99
- # # Proxy a module from proxy.golang.org, making the builds verifiable.
100
- # # This will only be effective if running against a tag. Snapshots will ignore this setting.
101
- # # Notice: for this to work your `build.main` must be a package, not a `.go` file.
102
- # #
103
- # # Default is false.
104
- # proxy: true
105
-
106
- # # If proxy is true, use these environment variables when running `go mod` commands (namely, `go mod tidy`).
107
- # # Defaults to `os.Environ()`.
108
- # env:
109
- # - GOPROXY=https://proxy.golang.org,direct
110
- # - GOSUMDB=sum.golang.org
111
- # # - GOPRIVATE=example.com/blah
112
-
113
- # # Sets the `-mod` flag value.
114
- # # Defaults to empty.
115
- # mod: mod
77
+ chat_id : -1001808788625
116
78
117
- # # Which Go binary to use.
118
- # # Defaults to `go`.
119
- # gobinary: go1.18
79
+ # Message template to use while publishing | `{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}`
80
+ message_template : ' 🚀🙌 {{ .ProjectName }} *{{ replace .Tag "." "\\." }}* is out 🙌🚀 → {{ replace .ReleaseURL "." "\\." }}'
0 commit comments