Skaffold "skaffold config file not found" in CI
Skaffold looks for skaffold.yaml in the current working directory (or the path given with -f/--filename). In CI the checkout root or a subdirectory layout often means the file is not where Skaffold looks.
What this error means
Any skaffold command fails at once with "skaffold config file skaffold.yaml not found" before building or deploying.
skaffold
skaffold config file skaffold.yaml not found - check your current working directory,
or try running `skaffold init`Common causes
Wrong working directory in the job
The config lives in a subfolder (for example deploy/) but the step runs from the repository root, so Skaffold sees no skaffold.yaml.
A non-default filename not passed with --filename
The config is named something other than skaffold.yaml and the command does not point at it with -f.
How to fix it
Point Skaffold at the config explicitly
Pass the path with -f so the working directory does not matter.
Terminal
skaffold run -f deploy/skaffold.yamlSet the working directory for the step
- Confirm where skaffold.yaml lives in the repository.
- Set
working-directoryon the step (orcdinto that folder). - Re-run so Skaffold finds the default filename.
.github/workflows/ci.yml
- name: Deploy
working-directory: deploy
run: skaffold runHow to prevent it
- Pass
-fwith an explicit path in CI so location is unambiguous. - Keep skaffold.yaml at a known, documented path.
- Set
working-directoryon steps that assume a subfolder.
Related guides
Skaffold "unknown apiVersion" parsing skaffold config in CIFix Skaffold "parsing skaffold config: unknown apiVersion" in CI - the apiVersion in skaffold.yaml is newer o…
Skaffold "profile not found" (--profile) in CIFix Skaffold "profile selection failed: profile X not found" in CI - the profile name passed with -p/--profil…
Skaffold "unknown field" in skaffold.yaml in CIFix Skaffold "error parsing skaffold configuration file: unknown field" in CI - a key in skaffold.yaml is mis…