Skip to content

Commit

Permalink
fix: add caching and improve workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rustamch committed Mar 8, 2024
1 parent a82d7a3 commit 914b3ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64, linux/arm64, darwin/amd64
context: .
push: true
tags: ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:${{ github.sha }}
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:cache
cache-to: type=inline
tags: |
ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:${{ github.sha }}
ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:latest

0 comments on commit 914b3ec

Please sign in to comment.