Skip to content

Commit a1d74ad

Browse files
authored
fix(ci): fix two failures in cleanup-ghcr-images workflow (#25684)
1 parent 2f4ba86 commit a1d74ad

1 file changed

Lines changed: 6 additions & 17 deletions

File tree

.github/workflows/cleanup-ghcr-images.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
#
33
# This workflow cleans up old images from GitHub Container Registry
44
# to prevent unlimited storage growth. It runs weekly and removes:
5-
# 1. Old dated nightly tags for vector (keeps last ~8)
6-
# 2. Old test-runner versions (keeps 5 most recent)
5+
# 1. Old test-runner versions (keeps 5 most recent)
6+
#
7+
# Note: cleanup of dated vector nightly images requires a token with
8+
# delete:packages scope (GITHUB_TOKEN is insufficient for org-owned
9+
# container packages). This is tracked separately.
710

811
name: Cleanup GHCR Images
912

@@ -17,19 +20,6 @@ permissions:
1720
contents: read # Restrictive default
1821

1922
jobs:
20-
cleanup-vector-nightlies:
21-
runs-on: ubuntu-24.04
22-
permissions:
23-
packages: write # Required to delete package versions from GHCR
24-
steps:
25-
- name: Delete old dated nightly vector images
26-
uses: actions/delete-package-versions@e5bc658cc4c965c472efe991f8beea3981499c55 # v5.0.0
27-
with:
28-
package-name: vector
29-
package-type: container
30-
min-versions-to-keep: 30
31-
ignore-versions: '^(nightly$|\d+\.\d+)'
32-
3323
cleanup-test-runner:
3424
runs-on: ubuntu-24.04
3525
permissions:
@@ -38,7 +28,6 @@ jobs:
3828
- name: Delete old test-runner images
3929
uses: actions/delete-package-versions@e5bc658cc4c965c472efe991f8beea3981499c55 # v5.0.0
4030
with:
41-
package-name: test-runner
31+
package-name: vector/test-runner
4232
package-type: container
4333
min-versions-to-keep: 5
44-
num-old-versions-to-delete: 100

0 commit comments

Comments
 (0)