-
Notifications
You must be signed in to change notification settings - Fork 399
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
Idea: build all images defined in .ko.yaml #643
Comments
Ooh, nice. This would be useful for folks who aren't using the Kubernetes integration, to just build a whole repo's worth of images. I wonder if we should just accept |
You can use
So this should
That should work, but it's not a great UX. We could package the ~same logic into |
ko build ./... is useful in some cases, however in my use case I really don't want to build and push everything, only those builds I've defined in .ko.yaml 😀 skaffold build follows a similar behaviour in that without any args it builds everything defined in skaffold.yaml. |
This issue is stale because it has been open for 90 days with no |
Just found I'd be willing to give implementation a try if this would be accepted? |
@carlpett that's the same as my use case. I think it's a very valid argument, ./... is just too inflexible. As mentioned above I just use skaffold instead since it has this capability and I need to build a few non-Go containers too. |
I think we should support |
an alternative dumb (bash) approach might be:
whereas my .ko.yaml file looks like:
|
hi, I am also interested in this feature - mainly because I have monorepo, and in CI I can expose the path to project which I would like to build - like What I would expect that I point Does this sounds as a reasonable use case? |
Idea
Running
ko build --all
or similar will build allbuilds[]
defined in.ko.yaml
.Motivation
Once you have more than a few builds defined, it becomes tedious to build everything. This is particularly true in a monorepo where you may have dozens of builds to publish in a CI pipeline.
The text was updated successfully, but these errors were encountered: