From 6ed929ac73079be983493d961c6a81b6343d9f74 Mon Sep 17 00:00:00 2001 From: Rob Holland Date: Thu, 24 Oct 2024 08:44:08 -0500 Subject: [PATCH] Docker cache via GHA. --- .github/workflows/docker-publish.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index f1be479..5e0e4ff 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -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 @@ -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 \ No newline at end of file + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + github-token: ${{ secrets.GITHUB_TOKEN }}