From 58b8d8ab6d9436ea764e43825ab4dc38926944e3 Mon Sep 17 00:00:00 2001 From: innovaker <66737976+innovaker@users.noreply.github.com> Date: Sun, 9 May 2021 21:40:57 +0100 Subject: [PATCH] refactor: remove `matrix.cache-to` `matrix.cache-to` is superfluous because it's always the same as the target. This was probably a hangover from an earlier design. PR: #20 --- .github/workflows/containers.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index aeb7ee2..d3954dd 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -20,11 +20,6 @@ jobs: target: # ordered from biggest to smallest to take advantage of the registry cache - dev - build - include: - - target: dev - cache-to: dev - - target: build - cache-to: build steps: - name: Login to GitHub Container Registry uses: docker/login-action@v1 @@ -45,7 +40,7 @@ jobs: CACHE_NAME=zmk-docker-cache CACHE_FROM=${CACHE_NAME}:dev - CACHE_TO=${CACHE_NAME}:${{ matrix.cache-to }} + CACHE_TO=${CACHE_NAME}:${{ matrix.target }} echo ::set-output name=cache-from::${CACHE_FROM} echo ::set-output name=cache-to::${CACHE_TO}