-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Using --no-push and remote caching dont work with each other #2752
Comments
Thanks for the issue @dosilyoun , would you mind providing more details i.e. which version of kaniko image is used here? There happened to be a patch on --no-push option with the usage of tarball in v1.15.0 earlier, wondering if that could be the corner case there. |
@JeromeJu I have only used v1.15.0 |
@JeromeJu v1.15.0 version of kaniko debug image: warning message: this file has never existed in my JFrog artifactory(https://test.jfrog.io/v2/test-repo/blobs/uploads/) |
--no-push and remote caching dont work with each other
As noted in #3180, the fix here was not correct and has been undone given the --no-push-cache flags usage and current use cases around pushing cached images but not the target image. To not push cache layers, the --no-cach-push flag should be used and to not push anything both the --no-push and --no-push-cache flag should be used. This was not documented well prior, this PR adds this flag to the public docs: |
Actual behavior
If I build and push with kaniko using remote caching, everything works as expected. If I just want to create a tarball and dont push final image but use remote-cache for the layers then it is not working.
Error uploading layer to cache: failed to push to destination ..io/********:*** POST https://..io/v2/****/blobs/uploads/: : Not Found
Expected behavior
I am able to use remote caching even If I dont push the built image itself
To Reproduce
Use any docker image to build and the most recent kaniko debug docker image.
Use flags --cache, --cache-repo and --no-push.
--cache
flagThe text was updated successfully, but these errors were encountered: