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

ux: consider do not enforce KO_DOCKER_REPO variable if --push=false #590

Closed
Dentrax opened this issue Feb 10, 2022 · 1 comment · Fixed by #604
Closed

ux: consider do not enforce KO_DOCKER_REPO variable if --push=false #590

Dentrax opened this issue Feb 10, 2022 · 1 comment · Fixed by #604
Labels
good first issue Good for newcomers

Comments

@Dentrax
Copy link

Dentrax commented Feb 10, 2022

Since we can pass --push=false, in this case $KO_DOCKER_REPO env flag could be useless to check whether it's set or not. It should be only checked if we're pushing image to remote. Wdyt?

$ ko publish --bare -B --platform=linux/amd64 --tags latest --push=false --oci-layout-path oci-dir .
Error: error creating publisher: KO_DOCKER_REPO environment variable is unset
2022/02/10 10:01:55 error during command execution:error creating publisher: KO_DOCKER_REPO environment variable is unset
@dirien
Copy link
Contributor

dirien commented Feb 20, 2022

Created a PR for this #604, was good to get used with the codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants