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

Add Flag to Disable Push to Container Registry #292

Merged

Conversation

rawkode
Copy link
Contributor

@rawkode rawkode commented Aug 17, 2018

The flag, --no-push, is added to allow building a container image
without pushing to a container registry. It can be common, especially
with multi-stage builds and --target, to build enough to run the tests,
and then perform a push in a separate CI step. This will facilitate these
workflows.

Copy link
Collaborator

@priyawadhwa priyawadhwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing! Could you add this flag to the README as well, under the "Additional Flags" section?

@priyawadhwa
Copy link
Collaborator

I'm also curious how you plan to use this flag in CI? If the image isn't saved anywhere, it can't be tested or used in later steps.

Are you just trying to verify the build works?

@rawkode
Copy link
Contributor Author

rawkode commented Aug 17, 2018

Hi @priyawadhwa, yeah; I'll update the README.

As for your question - yeah. We want to --target tests and ensure the code passes tests. We also use --target lint for linting checks, so we don't want to push these images anywhere.

@priyawadhwa
Copy link
Collaborator

Cool, thanks for clarifying!

The flag, `--no-push`, is added to allow building a container image
without pushing to a container registry. It can be common, especially
with multi-stage builds and `--target`, to build enough to run the tests,
and then perform a push in a separate CI step. This will facilitate these
workflows.
@rawkode
Copy link
Contributor Author

rawkode commented Aug 17, 2018

@priyawadhwa README.md updated 👍

Copy link
Collaborator

@priyawadhwa priyawadhwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for adding this!

@priyawadhwa priyawadhwa merged commit 10efecb into GoogleContainerTools:master Aug 17, 2018
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.

3 participants