Skip to content

Commit

Permalink
Clean untagged images after pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuelsmann committed Nov 12, 2023
1 parent 9c895ac commit 4c51a10
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ jobs:
push: true
tags: ${{ env.REGISTRY }}/ledgersmb/dev-ledgersmb:latest

- name: Clean GHCR.io registry 'dev-ledgersmb' package
uses: actions/delete-package-versions@v4
with:
package-name: dev-ledgersmb
delete-only-untagged-versions: true
min-versions-to-keep: 0

proxy:
runs-on: ubuntu-latest
permissions:
Expand All @@ -59,6 +66,13 @@ jobs:
push: true
tags: ${{ env.REGISTRY }}/ledgersmb/dev-nginx:latest

- name: Clean GHCR.io registry 'dev-nginx' package
uses: actions/delete-package-versions@v4
with:
package-name: dev-nginx
delete-only-untagged-versions: true
min-versions-to-keep: 0

postgres:
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -86,3 +100,10 @@ jobs:
context: postgres/
push: true
tags: ${{ env.REGISTRY }}/ledgersmb/dev-postgres:${{ matrix.pg_version }}

- name: Clean GHCR.io registry 'dev-postgres' package
uses: actions/delete-package-versions@v4
with:
package-name: dev-postgres
delete-only-untagged-versions: true
min-versions-to-keep: 0

0 comments on commit 4c51a10

Please sign in to comment.