|
@@ -15,10 +15,10 @@ permissions:
|
|
contents: read
|
|
contents: read
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
- container-cache:
|
|
|
|
|
|
+ registry:
|
|
# FIXME: On forks it fails with "Failed to fetch packages: missing field `id` at line 1 column 141"
|
|
# 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'
|
|
if: github.repository_owner == 'searxng' || github.event_name == 'workflow_dispatch'
|
|
- name: Container cache
|
|
|
|
|
|
+ name: Registry
|
|
runs-on: ubuntu-24.04
|
|
runs-on: ubuntu-24.04
|
|
permissions:
|
|
permissions:
|
|
# Organization GHCR
|
|
# Organization GHCR
|
|
@@ -30,7 +30,8 @@ jobs:
|
|
with:
|
|
with:
|
|
account: "${{ github.repository_owner }}"
|
|
account: "${{ github.repository_owner }}"
|
|
token: "${{ secrets.GITHUB_TOKEN }}"
|
|
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*"
|
|
image-tags: "!searxng*"
|
|
cut-off: "1d"
|
|
cut-off: "1d"
|
|
keep-n-most-recent: "100"
|
|
keep-n-most-recent: "100"
|