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

Splitting build + deploy for testing purposes #276

Closed
ekimia opened this issue Aug 5, 2018 · 6 comments
Closed

Splitting build + deploy for testing purposes #276

ekimia opened this issue Aug 5, 2018 · 6 comments

Comments

@ekimia
Copy link

ekimia commented Aug 5, 2018

Problem: Kaniko at least what i can determine doesnt have an option to build in 1 stage and deploy in another. In CI,it would be beneficial to build the image, run tests, then deploy. Is there something im overlooking?

@priyawadhwa
Copy link
Collaborator

Hey @ekimia , right now kaniko can build your image and save it to a tarball instead of deploying it (by setting the --tarPath flag). Would you be able to use that in your CI system?

@ekimia
Copy link
Author

ekimia commented Aug 7, 2018

@priyawadhwa that's doable, but adds a lot of disk I/O unfortunately :(

@AndreaGiardini
Copy link
Contributor

What about saving the tar.gz to /dev/null ? Is it possibile?

It's a bit hacky but it should work

@dlorenc
Copy link
Collaborator

dlorenc commented Aug 13, 2018

What type of tests are you trying to run on the built image? Without docker, you won't be able to run anything on the image.

@priyawadhwa
Copy link
Collaborator

Hey @ekimia , #292 will add a --no-push flag which could be useful here.

@bobcatfish
Copy link
Contributor

Currently assuming --no-push handles this, plz re-open or open a new issue if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants