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

Trigger ko target in snapshot mode #4683

Open
2 of 3 tasks
grzesuav opened this issue Mar 11, 2024 · 1 comment
Open
2 of 3 tasks

Trigger ko target in snapshot mode #4683

grzesuav opened this issue Mar 11, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request good-first-issue

Comments

@grzesuav
Copy link

Is your feature request related to a problem? Please describe.

Described in https://github.com/orgs/goreleaser/discussions/4678#discussioncomment-8744775

My use case - want to have a uniform way to create docker image locally, as ko is creating the container from scratch, and upload to repository directly, it would be nice to extend use case to generate container image in snapshot mode.

Describe the solution you'd like

Use command like

goreleaser build --single-target --clean --snapshot

to generate locally binary and container image, for use latter in kind etc

Describe alternatives you've considered

Manually maintain separate Dockerfiles and build locally, however with more than one binary it can be a nightmare

Search

  • I did search for other open and closed issues before opening this

Supporter

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

@grzesuav grzesuav added enhancement New feature or request triage Issue pending triage by one of the maintainers labels Mar 11, 2024
@caarlos0 caarlos0 removed the triage Issue pending triage by one of the maintainers label Mar 11, 2024
@caarlos0
Copy link
Member

it seems its not as easy as just set KO_DOCKER_REPO=ko.local, as we don't actually run the ko binary... so we need to investigate what they do there and do the same here.

Not too many matches, so probably it isn't too hard: https://github.com/search?q=repo%3Ako-build%2Fko%20ko.local&type=code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good-first-issue
Projects
None yet
Development

No branches or pull requests

2 participants