@@ -17,13 +17,23 @@ builds:
17
17
- linux
18
18
- windows
19
19
- darwin
20
+ goarch :
21
+ - amd64
22
+ - arm
23
+ - arm64
24
+ goarm :
25
+ - 7
20
26
ignore :
27
+ - goos : windows
28
+ goarch : arm
21
29
- goos : windows
22
30
goarch : arm64
23
31
- goos : windows
24
32
goarch : 386
25
33
- goos : linux
26
34
goarch : 386
35
+ ldflags :
36
+ - " -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser -X main.releaseURL={{.ReleaseURL}}"
27
37
dockers :
28
38
- image_templates :
29
39
- ghcr.io/{{ .Env.REPO_OWNER }}/{{ .ProjectName }}:{{ .Version }}-amd64
@@ -56,15 +66,34 @@ dockers:
56
66
- --label=org.opencontainers.image.created={{ .Date }}
57
67
- --label=org.opencontainers.image.revision={{ .FullCommit }}
58
68
- --label=org.opencontainers.image.licenses={{ .Env.LICENSES }}
69
+ - goarch : arm
70
+ goarm : 7
71
+ image_templates :
72
+ - ghcr.io/{{ .Env.REPO_OWNER }}/{{ .ProjectName }}:{{ .Version }}-armv7
73
+ - ghcr.io/{{ .Env.REPO_OWNER }}/{{ .ProjectName }}:latest-armv7
74
+ use : buildx
75
+ build_flag_templates :
76
+ - --pull
77
+ - --platform=linux/arm/v7
78
+ - --label=org.opencontainers.image.title={{ .ProjectName }}
79
+ - --label=org.opencontainers.image.description=={{ .Env.DESCRIPTION }}
80
+ - --label=org.opencontainers.image.url=https://github.com/{{ .Env.REPO_OWNER }}/{{ .ProjectName }}
81
+ - --label=org.opencontainers.image.source=https://github.com/{{ .Env.REPO_OWNER }}/{{ .ProjectName }}
82
+ - --label=org.opencontainers.image.version={{ .Version }}
83
+ - --label=org.opencontainers.image.created={{ .Date }}
84
+ - --label=org.opencontainers.image.revision={{ .FullCommit }}
85
+ - --label=org.opencontainers.image.licenses={{ .Env.LICENSES }}
59
86
docker_manifests :
60
87
- name_template : ghcr.io/{{ .Env.REPO_OWNER }}/{{ .ProjectName }}:{{ .Version }}
61
88
image_templates :
62
89
- ghcr.io/{{ .Env.REPO_OWNER }}/{{ .ProjectName }}:{{ .Version }}-amd64
63
90
- ghcr.io/{{ .Env.REPO_OWNER }}/{{ .ProjectName }}:{{ .Version }}-arm64v8
91
+ - ghcr.io/{{ .Env.REPO_OWNER }}/{{ .ProjectName }}:{{ .Version }}-armv7
64
92
- name_template : ghcr.io/{{ .Env.REPO_OWNER }}/{{ .ProjectName }}:latest
65
93
image_templates :
66
94
- ghcr.io/{{ .Env.REPO_OWNER }}/{{ .ProjectName }}:latest-amd64
67
95
- ghcr.io/{{ .Env.REPO_OWNER }}/{{ .ProjectName }}:latest-arm64v8
96
+ - ghcr.io/{{ .Env.REPO_OWNER }}/{{ .ProjectName }}:latest-armv7
68
97
archives :
69
98
- format : tar.gz
70
99
# this name template makes the OS and Arch compatible with the results of uname.
0 commit comments