refactor: move zmk-docker-cache to env

Simplifies future refactoring.

PR: #20
This commit is contained in:
innovaker 2021-05-09 21:43:22 +01:00
parent 58b8d8ab6d
commit a8cc84717b

View File

@ -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}