-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: deploy a multi-arch docker image #474
Changes from 3 commits
bbda6ee
17ec5f9
4b9ba85
e5eda5d
217ab6e
0d1650e
a3ac373
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,10 +36,47 @@ dockers: | |
- goos: linux | ||
goarch: amd64 | ||
image_templates: | ||
- "percona/mongodb_exporter:{{.Major}}.{{.Minor}}" | ||
- "percona/mongodb_exporter:{{.Version}}" | ||
- "docker.io/percona/mongodb_exporter:{{.Major}}.{{.Minor}}-amd64" | ||
- "docker.io/percona/mongodb_exporter:{{.Version}}-amd64" | ||
- "ghcr.io/percona/mongodb_exporter:{{.Major}}.{{.Minor}}-amd64" | ||
- "ghcr.io/percona/mongodb_exporter:{{.Version}}-amd64" | ||
dockerfile: Dockerfile | ||
build_flag_templates: | ||
- "--pull" | ||
- "--platform=linux/amd64" | ||
- goos: linux | ||
goarch: arm64 | ||
image_templates: | ||
- "docker.io/percona/mongodb_exporter:{{.Major}}.{{.Minor}}-arm64v8" | ||
- "docker.io/percona/mongodb_exporter:{{.Version}}-arm64v8" | ||
- "ghcr.io/percona/mongodb_exporter:{{.Major}}.{{.Minor}}-arm64v8" | ||
- "ghcr.io/percona/mongodb_exporter:{{.Version}}-arm64v8" | ||
dockerfile: Dockerfile | ||
use: buildx | ||
build_flag_templates: | ||
- "--pull" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure what does it here, but probably it pulls the latest version of the image to not use the one in a cache. So I think it's ok. |
||
- "--platform=linux/arm64/v8" | ||
docker_manifests: | ||
## Docker Hub | ||
- name_template: docker.io/percona/mongodb_exporter:{{.Major}}.{{.Minor}} | ||
image_templates: | ||
- docker.io/percona/mongodb_exporter:{{.Major}}.{{.Minor}}-arm64v8 | ||
- docker.io/percona/mongodb_exporter:{{.Major}}.{{.Minor}}-amd64 | ||
|
||
- name_template: docker.io/percona/mongodb_exporter:{{.Version}} | ||
image_templates: | ||
- docker.io/percona/mongodb_exporter:{{.Version}}-arm64v8 | ||
- docker.io/percona/mongodb_exporter:{{.Version}}-amd64 | ||
## GHCR | ||
- name_template: ghcr.io/percona/mongodb_exporter:{{.Major}}.{{.Minor}} | ||
image_templates: | ||
- ghcr.io/percona/mongodb_exporter:{{.Major}}.{{.Minor}}-arm64v8 | ||
- ghcr.io/percona/mongodb_exporter:{{.Major}}.{{.Minor}}-amd64 | ||
|
||
- name_template: ghcr.io/percona/mongodb_exporter:{{.Version}} | ||
image_templates: | ||
- ghcr.io/percona/mongodb_exporter:{{.Version}}-arm64v8 | ||
- ghcr.io/percona/mongodb_exporter:{{.Version}}-amd64 | ||
nfpms: | ||
- file_name_template: "{{ .ProjectName }}-{{ .Version }}.{{ .Os }}-{{ .Arch }}" | ||
homepage: https://www.percona.com/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nikita-b / @BupycHuk Do we need to use buildx for our Docker builds?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We build this image only for the community and I think it's okey to use buildx :)