From 9e21a2912d400b04a00222fb37eb42c90902f7c8 Mon Sep 17 00:00:00 2001 From: Ron <45816308+rjaegers@users.noreply.github.com> Date: Wed, 8 Nov 2023 10:47:47 +0000 Subject: [PATCH 1/2] chore: prime GitHub cache for Docker build on main --- .github/workflows/prime-cache.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/prime-cache.yml diff --git a/.github/workflows/prime-cache.yml b/.github/workflows/prime-cache.yml new file mode 100644 index 00000000..abac8095 --- /dev/null +++ b/.github/workflows/prime-cache.yml @@ -0,0 +1,27 @@ +--- +name: Prime Cache + +on: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + +jobs: + prime-docker-cache: + runs-on: ubuntu-latest + steps: + - uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0 + - uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0 + - uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 + with: + with: + file: .devcontainer/Dockerfile + platforms: linux/amd64,linux/arm64 + cache-from: type=gha + cache-to: type=gha,mode=max From 497a6607036a0e9162db004d993ed546e70c3193 Mon Sep 17 00:00:00 2001 From: Ron <45816308+rjaegers@users.noreply.github.com> Date: Wed, 8 Nov 2023 10:58:08 +0000 Subject: [PATCH 2/2] chore: remove duplicate 'with' key --- .github/workflows/prime-cache.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/prime-cache.yml b/.github/workflows/prime-cache.yml index abac8095..23ddfecd 100644 --- a/.github/workflows/prime-cache.yml +++ b/.github/workflows/prime-cache.yml @@ -19,7 +19,6 @@ jobs: - uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0 - uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0 - uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 - with: with: file: .devcontainer/Dockerfile platforms: linux/amd64,linux/arm64