From 9ed2cc978903813342c9daf3fc60c5ac1c35b269 Mon Sep 17 00:00:00 2001 From: aniss Date: Fri, 18 Oct 2024 10:52:17 +0800 Subject: [PATCH] fix pipeline env empty error --- .github/workflows/pipeline.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 5d96590c0..bf68c7c67 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -186,6 +186,12 @@ jobs: run: | PLATFORM=$(echo ${{ matrix.platform }} | tr '/' '_') echo "PLATFORM=$PLATFORM" >> $GITHUB_ENV + + - name: Get Lowercase Name + id: lowercase_name + run: | + REPO_LOWER=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]') + echo "REPO_LOWER=$REPO_LOWER" >> $GITHUB_ENV - uses: actions/checkout@v4 @@ -218,12 +224,6 @@ jobs: name: navidrome-${{ env.PLATFORM }} path: ./output retention-days: 7 - - - name: Get Lowercase Name - id: lowercase_name - run: | - REPO_LOWER=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]') - echo "REPO_LOWER=$REPO_LOWER" >> $GITHUB_OUTPUT # https://www.perplexity.ai/search/can-i-have-multiple-push-to-di-4P3ToaZFQtmVROuhaZMllQ - name: Build and push image by digest @@ -278,9 +278,9 @@ jobs: id: lowercase_name run: | REPO_LOWER=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]') - echo "REPO_LOWER=$REPO_LOWER" >> $GITHUB_OUTPUT - REGISTRY_IMAGE="ghcr.io/${{ needs.lower-repo-name.outputs.lowercase_repo }}" - echo "REGISTRY_IMAGE=$REGISTRY_IMAGE" >> $GITHUB_OUTPUT + echo "REPO_LOWER=$REPO_LOWER" >> $GITHUB_ENV + REGISTRY_IMAGE="ghcr.io/$REPO_LOWER" + echo "REGISTRY_IMAGE=$REGISTRY_IMAGE" >> $GITHUB_ENV - name: Prepare Docker Buildx uses: ./.github/actions/prepare-docker