diff options
| author | Ivan Gabaldon <igabaldon@inetol.net> | 2025-06-10 13:49:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-10 13:49:36 +0200 |
| commit | c081447d06164eb8ee8091320b3bd480becc24b2 (patch) | |
| tree | bc0160e027a132c1d3488d23cd30a2e549f5d483 /.github | |
| parent | d0bb977c48f553f70c70e5994eb674474469b533 (diff) | |
[fix] CI: prevent manifest removal (#4905)
The action does not take into account all cases of how an image is stored, causing errors like the ones below on image pull. I exclude `base` until I find a solution.
*Error: internal error: unable to copy from source ...: initializing source ...: reading manifest ... in ghcr.io/searxng/base: manifest unknown*
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/cleanup.yml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index d6af8feee..cb1da86e4 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -15,10 +15,10 @@ permissions: contents: read jobs: - container-cache: + registry: # FIXME: On forks it fails with "Failed to fetch packages: missing field `id` at line 1 column 141" if: github.repository_owner == 'searxng' || github.event_name == 'workflow_dispatch' - name: Container cache + name: Registry runs-on: ubuntu-24.04 permissions: # Organization GHCR @@ -30,7 +30,8 @@ jobs: with: account: "${{ github.repository_owner }}" token: "${{ secrets.GITHUB_TOKEN }}" - image-names: "cache base" + # Remove only cache images https://github.com/snok/container-retention-policy/issues/97 + image-names: "cache" image-tags: "!searxng*" cut-off: "1d" keep-n-most-recent: "100" |