chore(deps): bump the docker-dependencies group with 2 updates #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Cleanup | |
on: | |
pull_request: | |
types: | |
- "closed" | |
push: | |
paths: | |
- ".github/workflows/docker-cleanup.yml" | |
workflow_dispatch: | |
concurrency: | |
group: registry-tags-cleanup | |
cancel-in-progress: false | |
jobs: | |
cleanup-images: | |
if: github.event_name != 'workflow_dispatch' | |
name: Cleanup Stale Images Tags for ${{ matrix.primary-name }} | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- primary-name: "${{ github.event.repository.name }}" | |
env: | |
# Requires a personal access token with the OAuth scope delete:packages | |
TOKEN: ${{ secrets.PACKAGE_DELETE_TOKEN }} | |
steps: | |
- name: Clean temporary images | |
if: "${{ env.TOKEN != '' }}" | |
uses: stumpylog/image-cleaner-action/[email protected] | |
with: | |
token: "${{ env.TOKEN }}" | |
owner: "${{ github.repository_owner }}" | |
do_delete: "true" | |
package_name: "${{ matrix.primary-name }}" | |
scheme: "pull_request" | |
repo_name: "${{ github.event.repository.name }}" | |
match_regex: '^pr-(\d+)$|^(\d+)$' | |
cleanup-untagged-images: | |
name: Cleanup Untagged Images Tags for ${{ matrix.primary-name }} | |
runs-on: ubuntu-24.04 | |
needs: | |
- cleanup-images | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- primary-name: "${{ github.event.repository.name }}" | |
env: | |
# Requires a personal access token with the OAuth scope delete:packages | |
TOKEN: ${{ secrets.PACKAGE_DELETE_TOKEN }} | |
steps: | |
- name: Clean untagged images | |
if: "${{ env.TOKEN != '' }}" | |
uses: stumpylog/image-cleaner-action/[email protected] | |
with: | |
token: "${{ env.TOKEN }}" | |
owner: "${{ github.repository_owner }}" | |
do_delete: "true" | |
package_name: "${{ matrix.primary-name }}" |