Skip to content

Commit

Permalink
Add scopes to Docker gha cache backend to ensure each build gets a un…
Browse files Browse the repository at this point in the history
…ique cache

Followup to #47.
  • Loading branch information
lopopolo committed Aug 7, 2021
1 parent 87f6b22 commit 8c468e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-nightly.yaml
Expand Up @@ -64,7 +64,7 @@ jobs:
ARTICHOKE_NIGHTLY_VER=${{ steps.latest.outputs.commit }}
RUST_VERSION=${{ steps.rust_toolchain.outputs.version }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max,scope=docker-nightly-${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-v1

debian-slim:
name: Debian Slim
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
ARTICHOKE_NIGHTLY_VER=${{ steps.latest.outputs.commit }}
RUST_VERSION=${{ steps.rust_toolchain.outputs.version }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max,scope=docker-nightly-${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-v1

alpine:
name: Alpine
Expand Down Expand Up @@ -168,4 +168,4 @@ jobs:
ARTICHOKE_NIGHTLY_VER=${{ steps.latest.outputs.commit }}
RUST_VERSION=${{ steps.rust_toolchain.outputs.version }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max,scope=docker-nightly-${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-v1
6 changes: 3 additions & 3 deletions .github/workflows/dockerfile.yaml
Expand Up @@ -28,7 +28,7 @@ jobs:
file: ubuntu/focal/Dockerfile
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max,scope=docker-defaults-${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-v1

debian-slim:
name: Debian Slim
Expand All @@ -47,7 +47,7 @@ jobs:
file: debian/bullseye/slim/Dockerfile
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max,scope=docker-defaults-${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-v1

alpine:
name: Alpine
Expand All @@ -66,4 +66,4 @@ jobs:
file: alpine/Dockerfile
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max,scope=docker-defaults-${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-v1

0 comments on commit 8c468e2

Please sign in to comment.