Skip to content

Commit

Permalink
ghcr test with caching
Browse files Browse the repository at this point in the history
  • Loading branch information
briancaffey committed May 5, 2024
1 parent 61c7a74 commit 8e8ec4f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/docker_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,18 @@ 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.11
tags: ghcr.io/${{ github.repository }}/backend:v9.9.12
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-type: 'container'
min-versions-to-keep: 3
num-old-versions-to-delete: 1

# lint-backend-code:
# name: Lint and test backend python code
# runs-on: ubuntu-latest
Expand Down

0 comments on commit 8e8ec4f

Please sign in to comment.