Moving Dockerfile/values.yaml into the repo — how to prevent accidental edits?
Currently we keep our DevOps-related files (Dockerfile, values.yaml, etc.) on the Jenkins server instead of in the repo. During pipeline runs, we copy these files in at runtime.
I'm considering moving these files directly into the repository instead. The problem: if a developer accidentally edits the Dockerfile or values.yaml, it could cause issues.
So I want a way to either:
- Prevent developers from editing those specific files, or
- Require PR approval specifically for changes to those files
What's the best approach for this?
Posted Aug 13, 2026, 4:48 PM UTC
26