From 7cebbefc5b9c92aa2bf6c3cb797a461f68f331bb Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Thu, 17 Feb 2022 16:34:10 +0100 Subject: [PATCH] github/workflows: Enable Docker layer caching between builds 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 --- .github/workflows/build-and-test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 9e268437e3dbd..691e5c02d5ba7 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -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