File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99env :
1010 CACHE_THRESHOLD_GB : 6.5
11- BUILD_CACHE_IMAGE : ghcr.io/autowarefoundation/autoware-buildcache:amd64-main
11+ IMAGE_NAME : autoware-buildcache
12+ IMAGE_TAG : amd64-main
1213
1314jobs :
1415 keep-build-cache-small :
1920 sudo apt-get update
2021 sudo apt-get install -y skopeo jq bc
2122
23+ - name : Set up BUILD_CACHE_IMAGE environment variable
24+ run : |
25+ echo "BUILD_CACHE_IMAGE=ghcr.io/autowarefoundation/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}" >> "$GITHUB_ENV"
26+
2227 - name : Login to GitHub Container Registry
2328 uses : docker/login-action@v3
2429 with :
@@ -65,10 +70,13 @@ jobs:
6570 fi
6671
6772 - name : Delete build cache if exceeded
73+ uses : bots-house/ghcr-delete-image-action@v1.1.0
6874 if : steps.check_threshold.outputs.status == 'exceeded'
69- run : |
70- echo "🗑️ Deleting build cache image: ${{ env.BUILD_CACHE_IMAGE }}..."
71- skopeo delete docker://${{ env.BUILD_CACHE_IMAGE }}
75+ with :
76+ name : ${{ env.IMAGE_NAME }}
77+ tag : ${{ env.IMAGE_TAG }}
78+ owner : ${{ github.repository_owner }}
79+ token : ${{ secrets.GITHUB_TOKEN }}
7280
7381 - name : Verify cache deletion
7482 if : steps.check_threshold.outputs.status == 'exceeded'
You can’t perform that action at this time.
0 commit comments