Skip to content

Commit

Permalink
github/workflows: Enable Docker layer caching between builds
Browse files Browse the repository at this point in the history
For details see [1].

[1]: https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md#github-cache

Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
  • Loading branch information
sschuberth committed Aug 28, 2022
1 parent 495301c commit 7cebbef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ jobs:
distribution: temurin
java-version: 11
cache: gradle
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build the Docker image
uses: docker/build-push-action@v3
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Validate Batect wrapper scripts
uses: batect/batect-wrapper-validation-action@v0
- name: Run functional tests
Expand Down

0 comments on commit 7cebbef

Please sign in to comment.