Skip to content

Commit

Permalink
Delete untagged images
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Oct 31, 2024
1 parent 42ed476 commit ef69cfb
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/nightly-alpine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,20 @@ jobs:
RELEASE_QUERY_API=${{ env.RELEASE_QUERY_API }}
tags: |
ghcr.io/nushell/nushell:${{ env.NU_VERSION }}
cleanup:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs: build-and-push-Nu
steps:
- name: Delete all containers from repository without tags
uses: Chizkiyahu/delete-untagged-ghcr-action@v4
with:
owner_type: user
untagged_only: true
package_name: 'nushell'
repository_owner: 'nushell'
repository: 'nushell/nushell'
token: ${{ secrets.GITHUB_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/release-nu-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,20 @@ jobs:
ghcr.io/nushell/nushell:latest-alpine
ghcr.io/nushell/nushell:${{ env.NU_VERSION }}
ghcr.io/nushell/nushell:${{ env.NU_VERSION }}-alpine
cleanup:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs: build-and-push-Nu
steps:
- name: Delete all containers from repository without tags
uses: Chizkiyahu/delete-untagged-ghcr-action@v4
with:
owner_type: user
untagged_only: true
package_name: 'nushell'
repository_owner: 'nushell'
repository: 'nushell/nushell'
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ef69cfb

Please sign in to comment.