From 4d2a222f939b395766286a3fa452f20681161f04 Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Mon, 30 Dec 2024 17:29:30 +0100 Subject: [PATCH] fix replacement --- .github/workflows/docker-image.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index b2504af..6286577 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -37,7 +37,7 @@ jobs: - name: Prepare Platform Tag id: platform_tag - run: echo "TAG=${{ matrix.platform }}" | sed 's|/|-|g' > tag.txt + run: echo "platform_tag=$(echo ${{ matrix.platform }} | sed 's|/|-|g')" >> $GITHUB_ENV - name: Build and push platform-specific image uses: docker/build-push-action@v5 @@ -45,8 +45,8 @@ jobs: context: . platforms: ${{ matrix.platform }} push: true - tags: albertoxamin/bang:$(cat tag.txt) - cache-from: type=registry,ref=albertoxamin/bang:$(cat tag.txt) + tags: albertoxamin/bang:${{ env.platform_tag }} + cache-from: type=registry,ref=albertoxamin/bang:${{ env.platform_tag }} cache-to: type=inline create-manifest: