From 0d8bc90f199bf0048a8101ee0853b8cfe199aa3d Mon Sep 17 00:00:00 2001 From: trivernis Date: Wed, 11 Nov 2020 09:37:09 +0100 Subject: [PATCH] Add cache to docker action buildfile Signed-off-by: trivernis --- .github/workflows/docker.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 518c5c4..59ea0b7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -16,6 +16,13 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 + - name: Cache Docker layers + uses: actions/cache@v2 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- - name: Login to DockerHub uses: docker/login-action@v1