diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa4bcbe..c037752 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -281,7 +281,7 @@ jobs: - name: Prepare environment variables run: | - echo "IMAGE=ghcr.io/${{ github.repository }}/$(basename ${{ matrix.CONTEXT }}):${{ matrix.TAG }}" >> $GITHUB_ENV + echo "IMAGE=ghcr.io/${{ github.repository }}/$(echo ${{ matrix.CONTEXT }} | cut -d / -f 2):${{ matrix.TAG }}" >> $GITHUB_ENV echo "BUILD_ARGS<> $GITHUB_ENV echo "TAG=${{ matrix.TAG }}" >> $GITHUB_ENV if [[ -n "${{ matrix.BASEIMAGE }}" ]]; then