Skip to content

Commit

Permalink
Docker cache via GHA.
Browse files Browse the repository at this point in the history
  • Loading branch information
robholland committed Oct 24, 2024
1 parent 7700ffe commit 6ed929a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ 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
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push snake worker Docker image
uses: docker/build-push-action@v5
Expand All @@ -46,11 +49,17 @@ 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
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push UI Docker image
uses: docker/build-push-action@v5
with:
context: ./snakes
platforms: linux/amd64,linux/arm64
tags: ${{ env.REGISTRY }}/temporalio/snakes-ui:latest
push: true
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6ed929a

Please sign in to comment.