From dee34a882bb4237b90898733f9718fe12b1c9545 Mon Sep 17 00:00:00 2001 From: Henry Williams <3443648+henryjw@users.noreply.github.com> Date: Mon, 22 Jan 2024 12:48:41 -0500 Subject: [PATCH] add `skip-extraction` option to example on README Signed-off-by: Henry Williams <3443648+henryjw@users.noreply.github.com> --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2887d6d..2d09a2a 100644 --- a/README.md +++ b/README.md @@ -46,25 +46,29 @@ jobs: with: images: YOUR_IMAGE - name: Cache var-cache-apt + id: cache-var-cache-apt uses: actions/cache@v3 with: path: var-cache-apt key: var-cache-apt-${{ hashFiles('Dockerfile') }} - name: Cache var-lib-apt + id: cache-var-lib-apt uses: actions/cache@v3 with: path: var-lib-apt key: var-lib-apt-${{ hashFiles('Dockerfile') }} - name: inject var-cache-apt into docker - uses: reproducible-containers/buildkit-cache-dance@v2.1.3 + uses: reproducible-containers/buildkit-cache-dance@v2.1.4 with: cache-source: var-cache-apt cache-target: /var/cache/apt + skip-extraction: ${{ steps.cache-var-cache-apt.outputs.cache-hit }} - name: inject var-lib-apt into docker - uses: reproducible-containers/buildkit-cache-dance@v2.1.3 + uses: reproducible-containers/buildkit-cache-dance@v2.1.4 with: cache-source: var-lib-apt cache-target: /var/lib/apt + skip-extraction: ${{ steps.cache-var-lib-apt.outputs.cache-hit }} - name: Build and push uses: docker/build-push-action@v5 with: