Skip to content

Commit

Permalink
Add GitHub Actions cache mode to docker/build-push-action
Browse files Browse the repository at this point in the history
  • Loading branch information
lopopolo committed Aug 7, 2021
1 parent f459cdd commit 87f6b22
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docker-nightly.yaml
Expand Up @@ -63,6 +63,8 @@ jobs:
build-args: |
ARTICHOKE_NIGHTLY_VER=${{ steps.latest.outputs.commit }}
RUST_VERSION=${{ steps.rust_toolchain.outputs.version }}
cache-from: type=gha
cache-to: type=gha,mode=max

debian-slim:
name: Debian Slim
Expand Down Expand Up @@ -113,6 +115,8 @@ jobs:
build-args: |
ARTICHOKE_NIGHTLY_VER=${{ steps.latest.outputs.commit }}
RUST_VERSION=${{ steps.rust_toolchain.outputs.version }}
cache-from: type=gha
cache-to: type=gha,mode=max

alpine:
name: Alpine
Expand Down Expand Up @@ -163,3 +167,5 @@ jobs:
build-args: |
ARTICHOKE_NIGHTLY_VER=${{ steps.latest.outputs.commit }}
RUST_VERSION=${{ steps.rust_toolchain.outputs.version }}
cache-from: type=gha
cache-to: type=gha,mode=max
6 changes: 6 additions & 0 deletions .github/workflows/dockerfile.yaml
Expand Up @@ -27,6 +27,8 @@ jobs:
context: .
file: ubuntu/focal/Dockerfile
push: false
cache-from: type=gha
cache-to: type=gha,mode=max

debian-slim:
name: Debian Slim
Expand All @@ -44,6 +46,8 @@ jobs:
context: .
file: debian/bullseye/slim/Dockerfile
push: false
cache-from: type=gha
cache-to: type=gha,mode=max

alpine:
name: Alpine
Expand All @@ -61,3 +65,5 @@ jobs:
context: .
file: alpine/Dockerfile
push: false
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 87f6b22

Please sign in to comment.