feat: create multiarch docker images using buildx (#226)

This commit is contained in:
Dmytro Sirant 2022-05-02 22:56:27 +10:00 committed by GitHub
parent 9340cff800
commit 1d3318235b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,15 +11,43 @@ builds:
- arm64
dockers:
- image_templates:
- "hipages/php-fpm_exporter:latest"
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}"
- "hipages/php-fpm_exporter:{{ .Major }}"
- use: buildx
goos: linux
goarch: amd64
image_templates:
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64"
build_flag_templates:
- "--platform=linux/amd64"
- "--build-arg=VERSION={{.Version}}"
- "--build-arg=BUILD_DATE={{.Date}}"
- "--build-arg=VCS_REF={{.FullCommit}}"
- use: buildx
goos: linux
goarch: arm64
image_templates:
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64"
build_flag_templates:
- "--platform=linux/arm64/v8"
- "--build-arg=VERSION={{.Version}}"
- "--build-arg=BUILD_DATE={{.Date}}"
- "--build-arg=VCS_REF={{.FullCommit}}"
docker_manifests:
- name_template: "hipages/php-fpm_exporter:latest"
image_templates:
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64"
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64"
- name_template: "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
image_templates:
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64"
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64"
- name_template: "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}"
image_templates:
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64"
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64"
- name_template: "hipages/php-fpm_exporter:{{ .Major }}"
image_templates:
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64"
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-arm64"
changelog:
filters: