Skip to content

Commit

Permalink
update workflow docker
Browse files Browse the repository at this point in the history
  • Loading branch information
bigsk1 committed Jul 4, 2024
1 parent d97c764 commit 3950f1c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ jobs:
cleanup-packages:
runs-on: ubuntu-latest
needs: build-and-push-image # This ensures cleanup runs after successful build and push
permissions:
contents: read
packages: write
steps:
- name: Delete old frontend packages
uses: actions/delete-package-versions@v4
Expand All @@ -82,11 +85,13 @@ jobs:
package-type: 'container'
min-versions-to-keep: 3
delete-only-untagged-versions: false

num-old-versions-to-delete: 10 # Delete up to 10 old versions at a time

- name: Delete old backend packages
uses: actions/delete-package-versions@v4
with:
package-name: ${{ env.BACKEND_IMAGE_NAME }}
package-type: 'container'
min-versions-to-keep: 3
delete-only-untagged-versions: false
delete-only-untagged-versions: false
num-old-versions-to-delete: 10 # Delete up to 10 old versions at a time

0 comments on commit 3950f1c

Please sign in to comment.