Build images only when something in them changes #21

Merged
james merged 1 commit from build-only-on-image-changes into main 2026-10-27 16:17:27 +00:00
Owner

Both build workflows ran for changes that never reach their image: a laya
README edit rebuilt the 3.8 GB CUDA image, and a docs-only merge cut a new
centinela release.

  • laya.yml still runs for anything under laya/, except Markdown and
    .gitignore (laya/.dockerignore already drops README.md). New files still
    trigger a build, so a file the Dockerfile starts copying can't be missed.
  • build.yml also skips Markdown, integrations/ and LICENSE. The binary
    embeds only internal/waf/rules/, and a push that touches anything else
    still builds.

Checked with Forgejo's own matcher (runner v12 act/workflowpattern, the
Skip/Filter calls Forgejo 16 makes): docs-only pushes build neither image;
Dockerfile, serve.py, checkpoint.env, the workflow, Go code and the WAF
rules still build theirs.

Both build workflows ran for changes that never reach their image: a laya README edit rebuilt the 3.8 GB CUDA image, and a docs-only merge cut a new centinela release. - laya.yml still runs for anything under laya/, except Markdown and .gitignore (laya/.dockerignore already drops README.md). New files still trigger a build, so a file the Dockerfile starts copying can't be missed. - build.yml also skips Markdown, integrations/ and LICENSE. The binary embeds only internal/waf/rules/, and a push that touches anything else still builds. Checked with Forgejo's own matcher (runner v12 act/workflowpattern, the Skip/Filter calls Forgejo 16 makes): docs-only pushes build neither image; Dockerfile, serve.py, checkpoint.env, the workflow, Go code and the WAF rules still build theirs.
Build images only when something in them changes
All checks were successful
security-scan / security-scan (pull_request) Successful in 26s
test / laya (pull_request) Successful in 4s
test / go (pull_request) Successful in 1m41s
2abf8545d8
Both build workflows ran for changes that never reach their image: a laya
README edit rebuilt the 3.8 GB CUDA image, and a docs-only merge cut a new
centinela release.

- laya.yml still runs for anything under laya/, except Markdown and
  .gitignore (laya/.dockerignore already drops README.md). New files still
  trigger a build, so a file the Dockerfile starts copying can't be missed.
- build.yml also skips Markdown, integrations/ and LICENSE. The binary
  embeds only internal/waf/rules/, and a push that touches anything else
  still builds.

Checked with Forgejo's own matcher (runner v12 act/workflowpattern, the
Skip/Filter calls Forgejo 16 makes): docs-only pushes build neither image;
Dockerfile, serve.py, checkpoint.env, the workflow, Go code and the WAF
rules still build theirs.
james merged commit 7dde7db6db into main 2026-10-27 16:17:27 +00:00
james deleted branch build-only-on-image-changes 2026-10-27 16:17:27 +00:00

🔎 ojo scan results

No findings.

<!-- ojo-scan-summary --> ### 🔎 ojo scan results No findings.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ColibriSec/centinela!21
No description provided.