Skip to content

Commit

Permalink
update docker cache using registry
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Apr 26, 2024
1 parent bb0ca07 commit df144dc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,16 @@ jobs:
context: .
push: true
target: builder
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:cache
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}:cache,mode=max
tags: ghcr.io/${{ github.repository }}:dev

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:cache
tags: ghcr.io/${{ github.repository }}:latest

- name: Log in to Azure
Expand All @@ -45,7 +44,7 @@ jobs:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Build and deploy Container App
uses: azure/container-apps-deploy-action@v0
uses: azure/container-apps-deploy-action@v1
with:
imageToDeploy: ghcr.io/${{ github.repository }}:latest
containerAppName: webrtcstreamer
Expand Down

0 comments on commit df144dc

Please sign in to comment.