2222 REGISTRY : ghcr.io
2323
2424 steps :
25+ - name : Set lowercase repository name directly in run step
26+ run : |
27+ REPO_LC=$(echo "${GITHUB_REPOSITORY}" | tr '[:upper:]' '[:lower:]')
28+ echo "REPO_LC=${REPO_LC}" >> ${GITHUB_ENV}
29+ env :
30+ GITHUB_REPOSITORY : ${{ github.repository }}
31+
2532 - name : Checkout repository
2633 uses : actions/checkout@v4
2734 with :
@@ -100,7 +107,7 @@ jobs:
100107 platforms : ${{ matrix.platform }}
101108 cache-from : type=gha,scope=${{ steps.prep.outputs.pair }}
102109 cache-to : type=gha,scope=${{ steps.prep.outputs.pair }},mode=max
103- outputs : type=image,name=ghcr.io/${{ github.repository }},push-by-digest=true,name-canonical=true,push=true
110+ outputs : type=image,name=ghcr.io/${{ env.REPO_LC }},push-by-digest=true,name-canonical=true,push=true
104111
105112 - name : Export digest
106113 run : |
@@ -126,6 +133,13 @@ jobs:
126133 REGISTRY : ghcr.io
127134
128135 steps :
136+ - name : Set lowercase repository name directly in run step
137+ run : |
138+ REPO_LC=$(echo "${GITHUB_REPOSITORY}" | tr '[:upper:]' '[:lower:]')
139+ echo "REPO_LC=${REPO_LC}" >> ${GITHUB_ENV}
140+ env :
141+ GITHUB_REPOSITORY : ${{ github.repository }}
142+
129143 - name : Checkout repository
130144 uses : actions/checkout@v4
131145 with :
@@ -165,7 +179,7 @@ jobs:
165179 - name : Create and push manifest
166180 working-directory : /tmp/digests
167181 run : |
168- IMAGE=ghcr.io/${{ github.repository }}
182+ IMAGE=ghcr.io/${{ env.REPO_LC }}
169183 TAGS=(
170184 "$IMAGE:${{ env.NIGHTLY_VERSION }}"
171185 "$IMAGE:${{ env.NIGHTLY_VERSION }}-${{ github.sha }}"
0 commit comments