Closed colttt closed 3 years ago
Hi @colttt 👋🏻
I don't think you need to specify a workdir, and copy files over. The limitation might very well be GitLab not supporting the writable directory.
Our .gitlab-ci.yml
looks as such, and works flawlessly:
"🧂 - Lint SaltStack":
stage: lint
image:
name: warpnetbv/salt-lint:latest
entrypoint: [ '/bin/bash', '-c' ]
script:
- find . -type f -name "*.sls" | xargs --no-run-if-empty salt-lint
In other words, if you don't copy over the files, you can run find
in the current directory (in which GitLab already has the repo files).
thanks for that! it was the first time in gitlab-ci, thank you very much!
You're most welcome. Glad you were able to resolve it! :-)
Describe the bug it looks like that the workdir is not writeable
The docker-file looks like:
but I guess it should look soemthing like that:
To Reproduce my gitlab ci-yaml config looks like: