Do not rebuild the docker image when it is cached on remote docker registry even you don't have the cached image on local
Rebuild the docker images regardless of the state on remote registry. If you have the cached image removed from your local, skaffold will trigger a full build
apiVersion: skaffold/v1beta9
kind: Config
build:
artifacts:
- image: myimage
docker:
dockerfile: Dockerfile
target: stage1
local:
useDockerCLI: false
useBuildkit: false
skaffold build --cache-artifacts --default-repo x.y.z:5000 --insecure-registry x.y.z:5000, i can see the cache image has been pushed to my remote registrydocker rmi -f $(docker images -aq)
skaffold build --cache-artifacts --default-repo x.y.z:5000 --insecure-registry x.y.z:5000 again:
Checking cache...
- myimage: Not found. Rebuilding.
in step 3, i can see that a new cache image with the same tag has been pushed to my remote registry again
Hey @zodiac1214 this should be fixed with #2470! I'm going to go ahead and close this issue, but if you're still seeing this bug please reopen or leave us a comment. Thanks!
I have this issue when using gcr.io as remote container registry. I get
Checking cache...
- myimage: Not found. Rebuilding.
although my image hasn't changed
Most helpful comment
I have this issue when using gcr.io as remote container registry. I get
although my image hasn't changed