diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a9d330..c60bbd0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -271,7 +271,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