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 Feb 17, 2022
1 parent 92bfffe commit 0b834bd
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 @@ -100,6 +100,14 @@ jobs:
distribution: temurin
java-version: 11
cache: gradle
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build the Docker image
uses: docker/build-push-action@v2
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run functional tests
run: ./batect --enable-buildkit --config-var gradle_console=plain funTest -- -Dkotest.tags=!NoDockerTag -p analyzer
funTest-analyzer-no-docker:
Expand Down

0 comments on commit 0b834bd

Please sign in to comment.