This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch development in repository https://gitbox.apache.org/repos/asf/airflow-pgbouncer-exporter.git
commit 049212314eb64d451939f6fa8fabef22a384e633 Author: Juraj Bubniak <[email protected]> AuthorDate: Wed Mar 17 08:17:56 2021 +0100 Use multiarch docker build to support both amd64 and arm64 platforms. --- .goreleaser.yml | 41 ++++++++++++++++++++++++++++++++++------- CHANGELOG.md | 4 ++++ 2 files changed, 38 insertions(+), 7 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 638a423..1d8b924 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -22,6 +22,7 @@ builds: - windows goarch: - amd64 + - arm - arm64 - 386 archives: @@ -38,11 +39,37 @@ archives: snapshot: name_template: "SNAPSHOT-{{ .Commit }}" dockers: - - skip_push: auto - goos: linux - goarch: amd64 - ids: - - pgbouncer_exporter - image_templates: - - "jbub/pgbouncer_exporter:latest" + - image_templates: - "jbub/pgbouncer_exporter:{{ .Tag }}" + dockerfile: Dockerfile + use_buildx: true + build_flag_templates: + - "--pull" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.name={{.ProjectName}}" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.opencontainers.image.source={{.GitURL}}" + - "--platform=linux/amd64" + - image_templates: + - "jbub/pgbouncer_exporter:{{ .Tag }}-arm64" + dockerfile: Dockerfile + use_buildx: true + build_flag_templates: + - "--pull" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.name={{.ProjectName}}" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.opencontainers.image.source={{.GitURL}}" + - "--platform=linux/arm64" + goarch: arm64 +docker_manifests: + - name_template: 'jbub/pgbouncer_exporter:{{ .Tag }}' + image_templates: + - 'jbub/pgbouncer_exporter:{{ .Tag }}' + - 'jbub/pgbouncer_exporter:{{ .Tag }}-arm64' + - name_template: 'jbub/pgbouncer_exporter:latest' + image_templates: + - 'jbub/pgbouncer_exporter:{{ .Tag }}' + - 'jbub/pgbouncer_exporter:{{ .Tag }}-arm64' diff --git a/CHANGELOG.md b/CHANGELOG.md index aefc1ff..0ccdcc2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.9.1 + +* Use multiarch docker build to support both amd64 and arm64 platforms. + ## 0.9.0 * Build with Go 1.16.
