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

build-push-to-dockerhub for arm takes ~15 minutes to complete #45

Open
Pokom opened this issue Feb 8, 2024 · 1 comment
Open

build-push-to-dockerhub for arm takes ~15 minutes to complete #45

Pokom opened this issue Feb 8, 2024 · 1 comment

Comments

@Pokom
Copy link

Pokom commented Feb 8, 2024

grafana/cloudcost-exporter is using the build-push-to-dockerhub action to publish containers. One pain point is that the arm builds take upwards for 15 minutes to complete and without knowing this firsthand, it appears like the action hangs. I wonder if there's anything that we can do to speed up the arm builds? If it wasn't a shared action, I would follow @\julienduchesne's advice and build the binary first without using buildx and then add the binary at build time.

Is there a way the shared-workflows could support this in current state?

@iainlane
Copy link
Member

Hey @Pokom, sorry for the delay.

One thing you could do currently is use dockerhub-login and handle the building yourself.

Then you can use GOARCH to cross-compile and then copy the binary into your container, instead of using the emulation, which can be slow.

Would that work for you?

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

No branches or pull requests

2 participants