Skip to content

Commit f1a4768

Browse files
committed
Lowercase image name
1 parent 6b13078 commit f1a4768

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ on:
1212
- '*'
1313
pull_request:
1414

15-
env:
16-
# The name of the Docker image to be built and pushed to GHCR
17-
# The image name is derived from the GitHub repository name and the GitHub Container Registry (GHCR) URL.
18-
# The image name will be in the format: ghcr.io/<owner>/<repo>
19-
GHCR_IMAGE: ghcr.io/${{ github.repository }}
20-
2115
jobs:
2216

2317
build:
@@ -33,6 +27,9 @@ jobs:
3327
runs-on: ${{ matrix.runner }}
3428

3529
steps:
30+
- name: Set lowercase image name
31+
run: echo "GHCR_IMAGE=${ghcr.io/${{ github.repository }},,}" >> $GITHUB_ENV
32+
3633
- name: Set up Docker Buildx
3734
uses: docker/setup-buildx-action@v3
3835

@@ -68,8 +65,6 @@ jobs:
6865
labels: ${{ steps.meta.outputs.labels }}
6966
annotations: ${{ steps.meta.outputs.annotations }}
7067
outputs: type=image,name=${{ env.GHCR_IMAGE }},push-by-digest=true,name-canonical=true,push=true,oci-mediatypes=true
71-
cache-from: type=gha,scope=${{ github.repository }}-${{ github.ref_name }}-${{ matrix.platform }}
72-
cache-to: type=gha,scope=${{ github.repository }}-${{ github.ref_name }}-${{ matrix.platform }}
7368

7469
- name: Export digest
7570
run: |
@@ -91,6 +86,9 @@ jobs:
9186
# if: github.ref_type == 'tag'
9287

9388
steps:
89+
- name: Set lowercase image name
90+
run: echo "GHCR_IMAGE=${ghcr.io/${{ github.repository }},,}" >> $GITHUB_ENV
91+
9492
- name: Download digests
9593
uses: actions/download-artifact@v4
9694
with:

0 commit comments

Comments
 (0)