mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
docs(release): make changelog check B find changed image build files (#4952)
## What this PR does Check B of the changelog pre-publish verification in `docs/release.md` lists changed image build files with `git diff --name-only $PREV..$NEW -- 'images/*/Dockerfile'`. That pathspec never matches anything: there is no `images/` directory at the repository root, since image build files live under `packages/*/*/images/`. The check therefore printed nothing on every release and passed without looking at anything. It also skipped `Containerfile`, which first-party images such as `otelcol-tracing` and the dashboard `console` use. This PR changes the pathspec to `'*Dockerfile' '*Containerfile'`, which matches both file names at any depth. I checked it in a scratch repository: the old pathspec returned no files for a changed Dockerfile and Containerfile, and the new one returned both. Every Dockerfile and Containerfile currently in the repository lives under `packages/*/*/images/`, so the broader pathspec does not pick up files from vendored charts. Closes #4892 ### Screenshots N/A: documentation-only change, no UI impact. ### Downstream repositories - [x] No downstream repository is affected by this change - [ ] [cozystack/website](https://github.com/cozystack/website) - follow-up: - [ ] [cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack) - follow-up: - [ ] [cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack) - follow-up: - [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up: - [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up: - [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) - follow-up: - [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) - follow-up: - [ ] [cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server) - follow-up: - [ ] [cozystack/external-apps-example](https://github.com/cozystack/external-apps-example) - follow-up: - [ ] [cozystack/examples](https://github.com/cozystack/examples) - follow-up: - [ ] [cozystack/community](https://github.com/cozystack/community) - follow-up: ### Release note ```release-note docs(release): make changelog verification check B find changed image build files by matching Dockerfile and Containerfile at any depth ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Chores** * Pre-publish verification now checks for changes to Dockerfiles and Containerfiles throughout the release range, including files outside image-specific directories. This expands the container build-file changes covered by release checks; previously, verification was limited to Dockerfiles in image directories. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
1 file changed
+1
-1
@@ -63,7 +63,7 @@ done
|
||||
for path in packages/core/talos/images/talos/profiles/installer.yaml packages/core/installer/values.yaml packages/apps/kubernetes/values.yaml packages/apps/kubernetes-nodes/values.yaml; do
|
||||
git diff $PREV..$NEW -- "$path" | head -40
|
||||
done
|
||||
git diff --name-only $PREV..$NEW -- 'images/*/Dockerfile'
|
||||
git diff --name-only $PREV..$NEW -- '*Dockerfile' '*Containerfile'
|
||||
|
||||
# C. Every cited #NNNN exists and is a merged PR (not an issue)
|
||||
grep -oE '#[0-9]+' docs/changelogs/$NEW.md | sort -u | sed 's/#//' | xargs -P 20 -I{} sh -c '
|
||||
|
||||
Reference in new issue
Block a user