From 5aa8e56c7d564b635af411c287b7f41411438c13 Mon Sep 17 00:00:00 2001 From: Vladimir Gorej Date: Fri, 23 Feb 2024 13:38:32 +0100 Subject: [PATCH] ci(docker-build-push): upload digest with unique names #4 --- .github/workflows/docker-build-push.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml index bb3fc176637..0b93449d98a 100644 --- a/.github/workflows/docker-build-push.yml +++ b/.github/workflows/docker-build-push.yml @@ -94,8 +94,10 @@ jobs: - name: Sanitize platform variable id: sanitize_platform run: | - echo "SANITIZED_PLATFORM=$(echo '${{ matrix.platform }}' | sed 's/[^a-zA-Z0-9_-]//g')" >> $GITHUB_ENV - echo "::set-output name=sanitized_platform::$(echo $SANITIZED_PLATFORM)" + SANITIZED_PLATFORM="${{ matrix.platform }}" # Assuming direct usage for simplicity + SANITIZED_PLATFORM="${SANITIZED_PLATFORM//[^a-zA-Z0-9_-]/}" # Remove special chars + echo "SANITIZED_PLATFORM=${SANITIZED_PLATFORM}" # Echo for debug + echo "::set-output name=sanitized_platform::${SANITIZED_PLATFORM}" - name: Upload digest uses: actions/upload-artifact@v4