Keep image retention policy checks on main only #18

Merged
Zayden-Jung merged 1 commits from codex/retention-main-only into main 2026-10-29 11:22:47 +00:00
2 changed files with 6 additions and 11 deletions
@@ -1,13 +1,5 @@
name: Wiki image retention checks name: Wiki image retention checks
on: on:
pull_request:
paths:
- 'scripts/wiki-image-lifecycle.py'
- 'scripts/deploy.sh'
- 'tests/test_wiki_image_lifecycle.py'
- '.gitea/workflows/wiki-image-retention-checks.yml'
- '.gitea/workflows/waterfall-wiki.yml'
- 'Dockerfile'
push: push:
branches: [main] branches: [main]
paths: paths:
@@ -16,6 +8,7 @@ on:
- '.gitea/workflows/wiki-image-retention-checks.yml' - '.gitea/workflows/wiki-image-retention-checks.yml'
jobs: jobs:
retention-policy: retention-policy:
if: gitea.ref == 'refs/heads/main' && gitea.event_name == 'push'
runs-on: ces-control runs-on: ces-control
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
+5 -3
View File
@@ -54,6 +54,8 @@ the original build/deployment status or rolling back healthy services. Reference
images and Docker refusal are reported and retained. Failed CI does not record a images and Docker refusal are reported and retained. Failed CI does not record a
successful release and does not immediately remove that job's test image. successful release and does not immediately remove that job's test image.
PR checks run Python policy tests and shell syntax checks on ces-control without After the user merges to main, policy checks run Python tests and shell syntax
building or touching Docker. The existing full build/integration/deployment runs checks on ces-control without building or touching Docker. The full application
only after the user merges to main. No local builds are needed. build/integration/deployment also runs only on main updates, subject to its path
filters. PR events and manual dispatch do not trigger either workflow. No local
builds are needed.