Skip to content

fix: Build arm64 docker images with arm64 platform#16231

Merged
kodiakhq[bot] merged 8 commits into
mainfrom
fix/docker-arm64
Jan 24, 2024
Merged

fix: Build arm64 docker images with arm64 platform#16231
kodiakhq[bot] merged 8 commits into
mainfrom
fix/docker-arm64

Conversation

@disq
Copy link
Copy Markdown
Member

@disq disq commented Jan 22, 2024

@disq disq requested a review from erezrokah January 22, 2024 20:02
@disq disq requested a review from yevgenypats as a code owner January 22, 2024 20:02
Copy link
Copy Markdown
Member

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you'll need to add:

-
  name: Set up Docker Buildx
  uses: docker/setup-buildx-action@v3

Before

- name: Install GoReleaser

@disq disq requested a review from hermanschaaf as a code owner January 23, 2024 13:03
@cq-bot cq-bot added the area/ci label Jan 23, 2024
@disq
Copy link
Copy Markdown
Member Author

disq commented Jan 23, 2024

@erezrokah Added, I thought it already had buildx, but obviously didn't

Comment thread cli/.goreleaser.yaml
Copy link
Copy Markdown
Member

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to follow up with a manifest configuration, as currently we tag amd64 as:

- "ghcr.io/cloudquery/cloudquery:latest"
- "ghcr.io/cloudquery/cloudquery:{{.Version}}"
- "ghcr.io/cloudquery/cloudquery:{{ .Major }}.{{ .Minor }}"

@erezrokah
Copy link
Copy Markdown
Member

erezrokah commented Jan 23, 2024

Also probably you could test this via goreleaser release --snapshot --clean -f ./cli/.goreleaser.yaml, you need the pro version from brew install goreleaser/tap/goreleaser-pro (API key in 1Password)

@disq
Copy link
Copy Markdown
Member Author

disq commented Jan 23, 2024

@erezrokah added (not sure correctly?) in f2e31af (#16231) PTAL

goreleaser seems to work (once I switched to docker default context)

I'm not sure if I should also create manifests using docker manifest or if that's something goreleaser will handle for me. docs are at https://goreleaser.com/customization/docker_manifest/

Comment thread cli/.goreleaser.yaml Outdated
disq and others added 2 commits January 23, 2024 15:32
Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>
@disq
Copy link
Copy Markdown
Member Author

disq commented Jan 23, 2024

@erezrokah Makes much more sense now thanks

@disq disq added area/cli and removed needs-area labels Jan 23, 2024
@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Jan 24, 2024
@kodiakhq kodiakhq Bot merged commit 23dbf9c into main Jan 24, 2024
@kodiakhq kodiakhq Bot deleted the fix/docker-arm64 branch January 24, 2024 16:03
erezrokah added a commit that referenced this pull request Jan 24, 2024
<!-- 🎉 Thank you for making CloudQuery awesome by submitting a PR 🎉 -->

#### Summary

Follow up to #16231

<!--
Use the following steps to ensure your PR is ready to be reviewed

- [ ] Read the [contribution
guidelines](https://github.com/cloudquery/cloudquery/blob/main/CONTRIBUTING.md)
🧑‍🎓
- [ ] Run `make lint` to ensure the proposed changes follow the coding
style 🚨 (install golangci-lint
[here](https://golangci-lint.run/usage/install/#local-installation))
- [ ] Run `make test` to ensure the proposed changes pass the tests 🧪
- [ ] If changing a source plugin run `make gen` to ensure docs are up
to date 📝
- [ ] Ensure the status checks below are successful ✅
--->
kodiakhq Bot pushed a commit that referenced this pull request Jan 24, 2024
🤖 I have created a release *beep* *boop*
---


## [5.1.1](cli-v5.1.0...cli-v5.1.1) (2024-01-24)


### Bug Fixes

* Build arm64 docker images with arm64 platform ([#16231](#16231)) ([23dbf9c](23dbf9c))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.27.1 ([#16296](#16296)) ([ab4a0da](ab4a0da))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
kodiakhq Bot pushed a commit that referenced this pull request Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: arm64 docker images are actually built for amd64

4 participants