From 803b8f529295866513d887116b33bd2cf1d0663b Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 27 Apr 2023 15:02:33 +0200 Subject: [PATCH] cache gh actions --- .github/workflows/production-build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/production-build.yml b/.github/workflows/production-build.yml index 905377970..8dde93171 100644 --- a/.github/workflows/production-build.yml +++ b/.github/workflows/production-build.yml @@ -13,6 +13,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Cache Docker layers + uses: actions/cache@v2 + with: + path: | + /usr/local/share/ca-certificates + /var/cache/apt/archives + /var/lib/apt/lists + ~/.cache + key: ${{ runner.os }}-docker-${{ hashFiles('**/Dockerfile') }} + restore-keys: | + ${{ runner.os }}-docker- - name: Login to ghcr.io uses: docker/login-action@v2 with: