Skip to content

Commit a516804

Browse files
committed
feat: add multi-arch docker manifest support
1 parent d007638 commit a516804

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.goreleaser.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,30 @@ dockers:
6060
- frontier
6161
dockerfile: Dockerfile
6262
image_templates:
63-
- "docker.io/raystack/{{.ProjectName}}:latest"
64-
- "docker.io/raystack/{{.ProjectName}}:{{ .Tag }}"
6563
- "docker.io/raystack/{{.ProjectName}}:{{ .Tag }}-amd64"
64+
use: buildx
65+
build_flag_templates:
66+
- "--platform=linux/amd64"
6667
- goos: linux
6768
goarch: arm64
6869
ids:
6970
- frontier
7071
dockerfile: Dockerfile
7172
image_templates:
7273
- "docker.io/raystack/{{.ProjectName}}:{{ .Tag }}-arm64"
74+
use: buildx
75+
build_flag_templates:
76+
- "--platform=linux/arm64"
77+
78+
docker_manifests:
79+
- name_template: "docker.io/raystack/{{.ProjectName}}:{{ .Tag }}"
80+
image_templates:
81+
- "docker.io/raystack/{{.ProjectName}}:{{ .Tag }}-amd64"
82+
- "docker.io/raystack/{{.ProjectName}}:{{ .Tag }}-arm64"
83+
- name_template: "docker.io/raystack/{{.ProjectName}}:latest"
84+
image_templates:
85+
- "docker.io/raystack/{{.ProjectName}}:{{ .Tag }}-amd64"
86+
- "docker.io/raystack/{{.ProjectName}}:{{ .Tag }}-arm64"
7387

7488
nfpms:
7589
- maintainer: Raystack

0 commit comments

Comments
 (0)