Skip to content

Commit

Permalink
Try registry based cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
robholland committed Oct 24, 2024
1 parent c39726a commit 48e6466
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: ${{ env.REGISTRY }}/temporalio/snakes-core-worker:latest
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=registry,ref=${{ env.REGISTRY }}/temporalio/snakes-core-worker-buildcache:latest
cache-to: type=registry,ref=${{ env.REGISTRY }}/temporalio/snakes-core-worker-buildcache:latest,mode=max
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push snake worker Docker image
Expand All @@ -49,8 +49,8 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: ${{ env.REGISTRY }}/temporalio/snakes-worker:latest
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=registry,ref=${{ env.REGISTRY }}/temporalio/snakes-worker-buildcache:latest
cache-to: type=registry,ref=${{ env.REGISTRY }}/temporalio/snakes-worker-buildcache:latest,mode=max
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push UI Docker image
Expand All @@ -60,6 +60,6 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: ${{ env.REGISTRY }}/temporalio/snakes-ui:latest
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=registry,ref=${{ env.REGISTRY }}/temporalio/snakes-ui-buildcache:latest
cache-to: type=registry,ref=${{ env.REGISTRY }}/temporalio/snakes-ui-buildcache:latest,mode=max
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 48e6466

Please sign in to comment.