|
45 | 45 | - name: Set up Docker Buildx |
46 | 46 | uses: docker/setup-buildx-action@v4 |
47 | 47 |
|
| 48 | + - name: Lower case docker image name |
| 49 | + id: image |
| 50 | + uses: ASzc/change-string-case-action@v8 |
| 51 | + with: |
| 52 | + string: ${{ github.repository }} |
| 53 | + |
48 | 54 | - name: Sanitize upstream tag |
49 | 55 | if: inputs.upstream_tag != '' |
50 | 56 | id: tag |
|
69 | 75 | context: . |
70 | 76 | platforms: ${{ matrix.platform }} |
71 | 77 | labels: ${{ steps.meta.outputs.labels }} |
72 | | - outputs: type=image,name=ghcr.io/${{ github.repository }},push-by-digest=true,name-canonical=true,push=true |
| 78 | + outputs: type=image,name=ghcr.io/${{ steps.image.outputs.lowercase }},push-by-digest=true,name-canonical=true,push=true |
73 | 79 | cache-from: type=gha,scope=${{ matrix.platform }} |
74 | 80 | cache-to: type=gha,mode=max,scope=${{ matrix.platform }} |
75 | 81 |
|
@@ -114,6 +120,12 @@ jobs: |
114 | 120 | - name: Set up Docker Buildx |
115 | 121 | uses: docker/setup-buildx-action@v4 |
116 | 122 |
|
| 123 | + - name: Lower case docker image name |
| 124 | + id: image |
| 125 | + uses: ASzc/change-string-case-action@v8 |
| 126 | + with: |
| 127 | + string: ${{ github.repository }} |
| 128 | + |
117 | 129 | - name: Sanitize upstream tag |
118 | 130 | if: inputs.upstream_tag != '' |
119 | 131 | id: tag |
@@ -146,16 +158,16 @@ jobs: |
146 | 158 | --annotation='index:org.opencontainers.image.created=${{ steps.timestamp.outputs.timestamp }}' \ |
147 | 159 | --annotation='index:org.opencontainers.image.url=${{ github.event.repository.url }}' \ |
148 | 160 | --annotation='index:org.opencontainers.image.source=${{ github.event.repository.url }}' \ |
149 | | - $(printf 'ghcr.io/${{ github.repository }}@sha256:%s ' *) |
| 161 | + $(printf 'ghcr.io/${{ steps.image.outputs.lowercase }}@sha256:%s ' *) |
150 | 162 |
|
151 | 163 | - name: Create and push manifest (without annotations) |
152 | 164 | if: steps.manifest.outcome == 'failure' |
153 | 165 | working-directory: /tmp/digests |
154 | 166 | run: | |
155 | 167 | docker buildx imagetools create \ |
156 | 168 | $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ |
157 | | - $(printf 'ghcr.io/${{ github.repository }}@sha256:%s ' *) |
| 169 | + $(printf 'ghcr.io/${{ steps.image.outputs.lowercase }}@sha256:%s ' *) |
158 | 170 |
|
159 | 171 | - name: Inspect manifest |
160 | 172 | run: | |
161 | | - docker buildx imagetools inspect 'ghcr.io/${{ github.repository }}:${{ steps.meta.outputs.version }}' |
| 173 | + docker buildx imagetools inspect 'ghcr.io/${{ steps.image.outputs.lowercase }}:${{ steps.meta.outputs.version }}' |
0 commit comments