From 59347a409e20350447c7c14a03445b7af1ed8b79 Mon Sep 17 00:00:00 2001 From: Sergey Krashevich Date: Sun, 2 Apr 2023 07:05:09 +0300 Subject: [PATCH] Add cache for faster Docker builds from the GitHub Actions environment in ".github/workflows/docker.yml". --- .github/workflows/docker.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0c86d5ee..c201228b 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -63,7 +63,8 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - + cache-from: type=gha + cache-to: type=gha,mode=max - name: Build and push Hardware uses: docker/build-push-action@v3 with: @@ -73,3 +74,5 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta-hw.outputs.tags }} labels: ${{ steps.meta-hw.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max \ No newline at end of file