Skip to content

Commit

Permalink
ghcr test with caching with deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
briancaffey committed May 5, 2024
1 parent 8e8ec4f commit 4dbbbea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:
# https://github.com/docker/build-push-action?tab=readme-ov-file#git-context
context: "{{defaultContext}}:backend"
file: ./Dockerfile
tags: ghcr.io/${{ github.repository }}/backend:v9.9.12
tags: ghcr.io/${{ github.repository }}/backend:v9.9.13
cache-from: type=gha
cache-to: type=gha,mode=max

- uses: actions/delete-package-versions@v5
with:
# TODO: Confirm the package name needed
package-name: ghcr.io/${{ github.repository}}/backend
package-name: ${{ github.repository}}/backend
package-type: 'container'
min-versions-to-keep: 3
num-old-versions-to-delete: 1
Expand Down

0 comments on commit 4dbbbea

Please sign in to comment.