From a8cc84717bb768172ce8303c032cb01275447de8 Mon Sep 17 00:00:00 2001 From: innovaker <66737976+innovaker@users.noreply.github.com> Date: Sun, 9 May 2021 21:43:22 +0100 Subject: [PATCH] refactor: move `zmk-docker-cache` to env Simplifies future refactoring. PR: #20 --- .github/workflows/containers.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index d3954dd..4c8c2ed 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -3,6 +3,7 @@ name: Containers env: zephyr-version: 2.4.0 zephyr-sdk-version: 0.11.4 + cache-repository-name: zmk-docker-cache on: push: @@ -38,9 +39,8 @@ jobs: NAME=zmk-${{ matrix.target }}-${{ matrix.architecture }} echo ::set-output name=name::${NAME} - CACHE_NAME=zmk-docker-cache - CACHE_FROM=${CACHE_NAME}:dev - CACHE_TO=${CACHE_NAME}:${{ matrix.target }} + CACHE_FROM=${{ env.cache-repository-name }}:dev + CACHE_TO=${{ env.cache-repository-name }}:${{ matrix.target }} echo ::set-output name=cache-from::${CACHE_FROM} echo ::set-output name=cache-to::${CACHE_TO}