Skip to content
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

Simplify image builds by using QEMU to do multi-arch builds #350

Closed
wants to merge 1 commit into from

Conversation

chirino
Copy link
Contributor

@chirino chirino commented Jun 3, 2024

but since they are slow, only do the multi-arch builds for releases.

Also support passing cargo build args to the Docker image builder, allowing us to enable all features.

Comment on lines -9 to -10
tags:
- "*"
Copy link
Member

@alexsnaps alexsnaps Jun 3, 2024

Choose a reason for hiding this comment

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

I think we need this, as that's how we release, no? @didierofrivia
tags could be only v[0-9]+\.[0-9]+\.[0-9]+(-.*)? or something tho

Copy link
Contributor

Choose a reason for hiding this comment

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

We could reduce the scope to - 'v*.*.*' tags

workflow_dispatch:
push:
tags:
- "*"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added another workflow for releases, in this case we build both archs.

@chirino chirino force-pushed the docker-builds branch 3 times, most recently from 45b4a78 to 7b2f822 Compare June 3, 2024 15:51
…e they are slow, only do the multi-arch builds for releases.

Also support passing cargo build args to the Docker image builder, allowing us to enable all features.

Signed-off-by: Hiram Chirino <hiram@hiramchirino.com>
@eguzki
Copy link
Contributor

eguzki commented Jun 3, 2024

If I understand this correctly, image is not being built on PR's. Is this something we want? Building an image is kind of a test as well that either passes or fails.

@eguzki
Copy link
Contributor

eguzki commented Jun 3, 2024

If I understand this correctly, image is not being built on PR's. Is this something we want? Building an image is kind of a test as well that either passes or fails.

I realize that the image building on PR's was removed a while ago.

@didierofrivia
Copy link
Contributor

I'd say that going back to quemu for the default building is not ideal as the default build job, I'd rather add it as a different dispatch workflow and/or only for releases

@chirino
Copy link
Contributor Author

chirino commented Jun 7, 2024

ok. closing PR, maybe revisit later.

@chirino chirino closed this Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants