From 148cad967f36aa78bce4d60716fc8b3650fe2155 Mon Sep 17 00:00:00 2001 From: Callum Forrester <29771545+callumforrester@users.noreply.github.com> Date: Mon, 14 Mar 2022 10:29:20 +0000 Subject: [PATCH] Try to fix container build (#1) Attempt to apply workaround in https://github.com/docker/build-push-action/issues/37 --- .github/workflows/container.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 3466495..c988d42 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -47,13 +47,17 @@ jobs: id: buildx uses: docker/setup-buildx-action@v1 + - id: read-docker-image-identifiers + name: Read Docker Image Identifiers + run: echo ::set-env name=IMAGE_REPOSITORY::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') + - name: Run build (base container) uses: docker/build-push-action@v2 with: builder: ${{ steps.buildx.output.name }} push: true tags: | - ghcr.io/${{ github.repository }}:${{ steps.tagger.outputs.image_tag }} + ghcr.io/${{ env.IMAGE_REPOSITORY }}:${{ steps.tagger.outputs.image_tag }} target: base cache-from: type=local,src=~/cache - cache-to: type=local,dest=~/cache \ No newline at end of file + cache-to: type=local,dest=~/cache