From f0b02aecfdaa8c135b6d831d6002ce4f8cc00bf1 Mon Sep 17 00:00:00 2001 From: innovaker <66737976+innovaker@users.noreply.github.com> Date: Sat, 12 Jun 2021 20:54:47 +0100 Subject: [PATCH] refactor: change `zmk-dev-generic-cache` into `zmk-dev-generic` image Makes it easier to inspect the layers/image. PR: zmkfirmware/zmk-docker#73 --- .github/workflows/containers.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index 0290d33..224a474 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -101,7 +101,7 @@ jobs: env: NS: ${{ env.docker-hub-namespace }} NSU: ${{ env.docker-hub-namespace-upstream }} - REPOSITORY: zmk-dev-generic-cache + REPOSITORY: zmk-dev-generic BRANCH: ${{ needs.tags.outputs.branch }} BASE: ${{ needs.tags.outputs.base }} MAJOR_MINOR_BRANCH: ${{ needs.tags.outputs.major-minor-branch }} @@ -154,8 +154,11 @@ jobs: target: dev-generic build-args: | ZEPHYR_VERSION=${{ env.zephyr-version }} + tags: | + ${{ steps.paths.outputs.branch }} cache-from: type=local,src=${{ steps.paths.outputs.local-new }} - cache-to: type=registry,ref=${{ steps.paths.outputs.branch }},mode=max + cache-to: type=inline + push: true # Workaround to stop the dev-generic cache ballooning ... # https://github.com/docker/build-push-action/issues/252 # https://github.com/moby/buildkit/issues/1896