Skip to content

Commit

Permalink
Merge pull request #47 from artichoke/docker-cache
Browse files Browse the repository at this point in the history
Add GitHub Actions cache mode to docker/build-push-action
  • Loading branch information
lopopolo committed Aug 7, 2021
2 parents f459cdd + 87f6b22 commit 6a0c9ef
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 6a0c9ef

Please sign in to comment.