Skip to content

Commit f2b494f

Browse files
authored
feat: Add arm platform flag in dockers step (#26)
* Added arm platform flag in dockers step * Extra quote * Create a new entry * Added manifest step * indent
1 parent 27d699b commit f2b494f

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

.goreleaser.yaml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,18 @@ brews:
6464
# Default is empty.
6565
license: "MIT"
6666
dockers:
67-
- id: protoconf-docker
67+
- id: protoconf-docker-amd64
6868
image_templates:
6969
- "protoconf/protoconf-xds:latest"
7070
- "protoconf/protoconf-xds:{{ .Tag }}"
7171
- "protoconf/protoconf-xds:v{{ .Major }}"
7272
- "protoconf/protoconf-xds:v{{ .Major }}.{{ .Minor }}"
7373
- "ghcr.io/protoconf/protoconf-xds:latest"
7474
- "ghcr.io/protoconf/protoconf-xds:{{ .Tag }}"
75+
- "ghcr.io/protoconf/protoconf-xds:{{ .Tag }}-amd64"
7576
- "ghcr.io/protoconf/protoconf-xds:{{ .Major }}"
7677
- "ghcr.io/protoconf/protoconf-xds:{{ .Major }}.{{ .Minor }}"
78+
use: buildx
7779
dockerfile: build/Dockerfile
7880
build_flag_templates:
7981
- "--pull"
@@ -85,3 +87,32 @@ dockers:
8587
- "--label=org.opencontainers.image.license=MIT"
8688
- "--label=org.opencontainers.image.description={{.ProjectName}}"
8789
- "--platform=linux/amd64"
90+
- id: protoconf-docker-arm64
91+
image_templates:
92+
- "protoconf/protoconf-xds:latest"
93+
- "protoconf/protoconf-xds:{{ .Tag }}"
94+
- "protoconf/protoconf-xds:v{{ .Major }}"
95+
- "protoconf/protoconf-xds:v{{ .Major }}.{{ .Minor }}"
96+
- "ghcr.io/protoconf/protoconf-xds:latest"
97+
- "ghcr.io/protoconf/protoconf-xds:{{ .Tag }}"
98+
- "ghcr.io/protoconf/protoconf-xds:{{ .Tag }}-arm64"
99+
- "ghcr.io/protoconf/protoconf-xds:{{ .Major }}"
100+
- "ghcr.io/protoconf/protoconf-xds:{{ .Major }}.{{ .Minor }}"
101+
use: buildx
102+
dockerfile: build/Dockerfile
103+
build_flag_templates:
104+
- "--pull"
105+
- "--label=org.opencontainers.image.created={{.Date}}"
106+
- "--label=org.opencontainers.image.title={{.ProjectName}}"
107+
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
108+
- "--label=org.opencontainers.image.version={{.Version}}"
109+
- "--label=org.opencontainers.image.source=https://github.com/protoconf/protoconf-xds"
110+
- "--label=org.opencontainers.image.license=MIT"
111+
- "--label=org.opencontainers.image.description={{.ProjectName}}"
112+
- "--platform=linux/arm64"
113+
goarch: arm64
114+
docker_manifests:
115+
- name_template: "ghcr.io/protoconf/protoconf-xds:{{ .Tag }}"
116+
image_templates:
117+
- "ghcr.io/protoconf/protoconf-xds:{{ .Tag }}-amd64"
118+
- "ghcr.io/protoconf/protoconf-xds:{{ .Tag }}-arm64"

0 commit comments

Comments
 (0)