feat: create multiarch docker images using buildx (#226)
This commit is contained in:
parent
9340cff800
commit
1d3318235b
1 changed files with 33 additions and 5 deletions
|
@ -11,15 +11,43 @@ builds:
|
||||||
- arm64
|
- arm64
|
||||||
|
|
||||||
dockers:
|
dockers:
|
||||||
- image_templates:
|
- use: buildx
|
||||||
- "hipages/php-fpm_exporter:latest"
|
goos: linux
|
||||||
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
|
goarch: amd64
|
||||||
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}"
|
image_templates:
|
||||||
- "hipages/php-fpm_exporter:{{ .Major }}"
|
- "hipages/php-fpm_exporter:{{ .Major }}.{{ .Minor }}.{{ .Patch }}-amd64"
|
||||||
build_flag_templates:
|
build_flag_templates:
|
||||||
|
- "--platform=linux/amd64"
|
||||||
- "--build-arg=VERSION={{.Version}}"
|
- "--build-arg=VERSION={{.Version}}"
|
||||||
- "--build-arg=BUILD_DATE={{.Date}}"
|
- "--build-arg=BUILD_DATE={{.Date}}"
|
||||||
- "--build-arg=VCS_REF={{.FullCommit}}"
|
- "--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:
|
changelog:
|
||||||
filters:
|
filters:
|
||||||
|
|
Loading…
Reference in a new issue