-
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
When --tarPath option is used, image is not uploaded to the registry #1544
Comments
Any news on this issue as it's just caught us out? |
@tejal29 is this something which could be looked into? |
As README said:
But ref the code: Lines 229 to 245 in 69f942f
Focus the L239, it's returned. |
We ran into the same issue when we tested kaniko on our Gitlab Runner. We wanted to export the image as a tarball to scan it later for vulnerabilities - but also upload it to our registry. I guess most people used the option to only export to a tarball? @PMExtra I also believe this is the culprit, even when this line was last changed three years ago. I will open a small PR so that it only checks for errors at this line. |
@larsgroeber same here. |
* Specifying a tarPath will push the image as well
Actual behavior
I want to create a tar of the containeras the part of the build pipeline as well as upload the image to the docker registry. I want this to happen within a single step of build pipeline, where a single kaniko command creates both. Kaniko documentation suggests that unless --no-push switch is specified, this should work. I am using following command line switches:
The actual behaviour is that only tar image is created, but image is not uploaded to the registry If the switch --tarPath is removed, image is uploaded to the registry.
Expected behavior
I expect that tar archive of the image to be created as well as the image is uploaded to the registry
To Reproduce
Steps to reproduce the behavior:
Additional Information
Please provide either the Dockerfile you're trying to build or one that can reproduce this error.
Please provide or clearly describe any files needed to build the Dockerfile (ADD/COPY commands)
Triage Notes for the Maintainers
--cache
flagThe text was updated successfully, but these errors were encountered: