@@ -15,6 +15,9 @@ builds:
1515 - linux
1616 - windows
1717 - darwin
18+ goarch :
19+ - amd64
20+ - arm64
1821
1922archives :
2023 - formats : [ 'tar.gz', 'binary' ]
@@ -33,10 +36,11 @@ archives:
3336
3437dockers :
3538 - image_templates :
36- - " tmccombs/{{ .ProjectName }}:latest "
37- - " tmccombs/{{ .ProjectName }}:{{ .Version }} "
38- - " tmccombs/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }} "
39+ - " tmccombs/{{ .ProjectName }}:{{ .Version }}-amd64 "
40+ goos : linux
41+ goarch : amd64
3942 build_flag_templates :
43+ - " --platform=linux/amd64"
4044 - " --label=org.opencontainers.image.title={{ .ProjectName }}"
4145 - " --label=org.opencontainers.image.description=Convert HCL to JSON"
4246 - " --label=org.opencontainers.image.url=https://github.com/tmccombs/hcl2json"
@@ -45,6 +49,34 @@ dockers:
4549 - " --label=org.opencontainers.image.revision={{ .FullCommit }}"
4650 - " --label=org.opencontainers.image.created={{ .Date }}"
4751 - " --label=org.opencontainers.image.licenses=Apache-2.0"
52+ - image_templates :
53+ - " tmccombs/{{ .ProjectName }}:{{ .Version }}-arm64"
54+ goos : linux
55+ goarch : arm64
56+ build_flag_templates :
57+ - " --platform=linux/arm64"
58+ - " --label=org.opencontainers.image.title={{ .ProjectName }}"
59+ - " --label=org.opencontainers.image.description=Convert HCL to JSON"
60+ - " --label=org.opencontainers.image.url=https://github.com/tmccombs/hcl2json"
61+ - " --label=org.opencontainers.image.source=https://github.com/tmccombs/hcl2json"
62+ - " --label=org.opencontainers.image.version={{ .Version }}"
63+ - " --label=org.opencontainers.image.revision={{ .FullCommit }}"
64+ - " --label=org.opencontainers.image.created={{ .Date }}"
65+ - " --label=org.opencontainers.image.licenses=Apache-2.0"
66+
67+ docker_manifests :
68+ - name_template : " tmccombs/{{ .ProjectName }}:{{ .Version }}"
69+ image_templates :
70+ - " tmccombs/{{ .ProjectName }}:{{ .Version }}-amd64"
71+ - " tmccombs/{{ .ProjectName }}:{{ .Version }}-arm64"
72+ - name_template : " tmccombs/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}"
73+ image_templates :
74+ - " tmccombs/{{ .ProjectName }}:{{ .Version }}-amd64"
75+ - " tmccombs/{{ .ProjectName }}:{{ .Version }}-arm64"
76+ - name_template : " tmccombs/{{ .ProjectName }}:latest"
77+ image_templates :
78+ - " tmccombs/{{ .ProjectName }}:{{ .Version }}-amd64"
79+ - " tmccombs/{{ .ProjectName }}:{{ .Version }}-arm64"
4880
4981
5082changelog :
0 commit comments