Closed fpighi closed 5 years ago
Additional note:
I reverted to v0.20.0
and that version seems to be working fine.
I am seeing a similar issue with googleCloudBuild.
It only works if the Dockerfile is in the same directory as skaffold.yaml. If I specify a context: docker/ it looks like the path calculations append the context: directory twice. The tar command fails with:
/Users/redacted/tmp/forgeops-init/cicd/ig/docker/docker/Dockerfile . no such file or directory
FWIW, I am using a profile. I have tried various combinations of setting the context: (./docker, ../docker, omitting it, etc.) - and they all seem to fail
Yes, I'm sure I broke something. Let me take a look.
Sorry. A fix is coming soon. Until then, you can rollback to using Skaffold v0.20.0.
I've started using Skaffold very recently, so it might be something I'm doing wrong. Please correct me if so.
Expected behavior
Kaniko build works with
examples/microservices/skaffold.yaml
.Actual behavior
Kaniko builder tar.gz path handling seems to be wrong when the context is not the same directory as the workspace.
The failure is as follows on my machine:
Note the path on last line of the log is
/home/fpighi/go/src/github.com/GoogleContai nerTools/skaffold/examples/microservices/leeroy-web/leeroy-web/Dockerfile
Information
Steps to reproduce the behavior
examples/microservices
skaffold.yaml
with the content pasted above (probably replacing thepullSecretName
)skaffold build -v debug