@@ -62,18 +62,43 @@ signs:
62
62
63
63
# create a docker image
64
64
# https://goreleaser.com/customization/docker
65
+ # https://goreleaser.com/cookbooks/multi-platform-docker-images/
65
66
dockers :
66
67
- image_templates :
67
- - " ghcr.io/grepplabs/reverse-http:{{ .Tag }}"
68
- - " ghcr.io/grepplabs/reverse-http:latest"
68
+ - " ghcr.io/grepplabs/reverse-http:{{ .Tag }}-amd64"
69
69
dockerfile : Dockerfile
70
+ use : buildx
70
71
build_flag_templates :
71
72
- " --pull"
73
+ - " --platform=linux/amd64"
72
74
- " --label=org.opencontainers.image.created={{.Date}}"
73
75
- " --label=org.opencontainers.image.name={{.ProjectName}}"
74
76
- " --label=org.opencontainers.image.revision={{.FullCommit}}"
75
77
- " --label=org.opencontainers.image.version={{.Version}}"
76
78
- " --label=org.opencontainers.image.source={{.GitURL}}"
79
+ - image_templates :
80
+ - " ghcr.io/grepplabs/reverse-http:{{ .Tag }}-arm64"
81
+ dockerfile : Dockerfile
82
+ use : buildx
83
+ build_flag_templates :
84
+ - " --pull"
85
+ - " --platform=linux/arm64"
86
+ - " --label=org.opencontainers.image.created={{.Date}}"
87
+ - " --label=org.opencontainers.image.name={{.ProjectName}}"
88
+ - " --label=org.opencontainers.image.revision={{.FullCommit}}"
89
+ - " --label=org.opencontainers.image.version={{.Version}}"
90
+ - " --label=org.opencontainers.image.source={{.GitURL}}"
91
+
92
+ # https://goreleaser.com/customization/docker_manifest/
93
+ docker_manifests :
94
+ - name_template : ' ghcr.io/grepplabs/reverse-http:{{ .Tag }}'
95
+ image_templates :
96
+ - ' ghcr.io/grepplabs/reverse-http:{{ .Tag }}-amd64'
97
+ - ' ghcr.io/grepplabs/reverse-http:{{ .Tag }}-arm64'
98
+ - name_template : ' ghcr.io/grepplabs/reverse-http:latest'
99
+ image_templates :
100
+ - ' ghcr.io/grepplabs/reverse-http:{{ .Tag }}-amd64'
101
+ - ' ghcr.io/grepplabs/reverse-http:{{ .Tag }}-arm64'
77
102
78
103
# signs our docker image
79
104
# https://goreleaser.com/customization/docker_sign
0 commit comments