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

fix: --cache-to flag not working #293

Merged
merged 5 commits into from
Jul 27, 2023
Merged

fix: --cache-to flag not working #293

merged 5 commits into from
Jul 27, 2023

Conversation

brivu
Copy link
Contributor

@brivu brivu commented Jul 26, 2023

When a user runs the build_and_push_image job with one specified platform in a cimg executor, the default docker builder is used. This is problematic because without using the docker buildx builder, some features like the --cache-to flag will not work.

This PR checks the current builder using the docker buildx inspect command. If the builder is the default, docker buildx create --use will be run to set up a new builder to be used.

@brivu brivu requested a review from a team as a code owner July 26, 2023 23:52
@brivu brivu self-assigned this Jul 26, 2023
@brivu brivu linked an issue Jul 26, 2023 that may be closed by this pull request
src/scripts/docker_buildx.sh Outdated Show resolved Hide resolved
Co-authored-by: Eric Ribeiro <ericribeiro@outlook.com.br>
@brivu brivu merged commit 683c5b2 into master Jul 27, 2023
2 checks passed
@brivu brivu deleted the fix/cache-to-flag branch July 27, 2023 19:01
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.

--cache-to option is not available on v8.2.1
2 participants