Multi-platform Docker images

pull/26/head
Philipp Heckel 2021-11-22 10:46:19 -05:00
parent 21990398c6
commit 2a05715107
3 changed files with 21 additions and 7 deletions

View File

@ -78,12 +78,26 @@ changelog:
- '^docs:' - '^docs:'
- '^test:' - '^test:'
dockers: dockers:
- dockerfile: Dockerfile - image_templates:
ids: - &amd64_image "binwiederhier/ntfy:{{ .Tag }}-amd64"
- ntfy use: buildx
goos: linux dockerfile: Dockerfile
goarch: amd64 goarch: amd64
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- &arm64v8_image "binwiederhier/ntfy:{{ .Tag }}-arm64v8"
use: buildx
dockerfile: Dockerfile
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64/v8"
docker_manifests:
- name_template: "binwiederhier/ntfy:latest"
image_templates: image_templates:
- "binwiederhier/ntfy:latest" - *amd64_image
- "binwiederhier/ntfy:{{ .Tag }}" - *arm64v8_image
- "binwiederhier/ntfy:v{{ .Major }}.{{ .Minor }}" - name_template: "binwiederhier/ntfy:{{ .Tag }}"
image_templates:
- *amd64_image
- *arm64v8_image

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB