-
Notifications
You must be signed in to change notification settings - Fork 336
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
Add docker builder option to provider #987
Add docker builder option to provider #987
Conversation
@pascalbreuninger can you have a look to this one and give me some feedback please? |
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.
@aacebedo thanks for the PR! Got a couple of comments and want to make sure tests are still working
Thanks for the review! Yes I will solve the e2e tests. |
ec49f97
to
7a60471
Compare
@pascalbreuninger I have fixed the test. I have added a workflow dispatch event to E2E test to ease the next PRs. Don't know if it is ok for you but it helped me a lot as I do not have the same environment as the CI. |
pkg/docker/helper.go
Outdated
) | ||
|
||
func (db DockerBuilder) String() string { | ||
return [...]string{"buildkit", "buildx", ""}[db] |
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.
last small issue: since the default is now ""
, the order should probably be updated as well
return [...]string{"buildkit", "buildx", ""}[db] | |
return [...]string{"", "buildx", "buildkit"}[db] |
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.
corrected
One small cleanup remaining and we're good to merge. |
7a60471
to
6389e94
Compare
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.
LGTM, thanks 🙌
This PR solves #984 by first checking if podman is used when buildxExists is called and return true in this case.
It also adds a DOCKER_BUILDER option to the provider in order to choose easily between the 2 builders.