You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2021/09/22 11:22:26 UTC
[airflow-pgbouncer-exporter] 17/27: Use multiarch docker build to
support both amd64 and arm64 platforms.
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch migrate-to-latest-pgbouncer-exported
in repository https://gitbox.apache.org/repos/asf/airflow-pgbouncer-exporter.git
commit f28ea6337f2ac80a9c81bf89698542b8600c0d10
Author: Juraj Bubniak <ju...@gmail.com>
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.