Skip to content

Commit 6cfccd9

Browse files
committed
fix: ensure IMAGE_NAME is consistently downcased in Docker workflow
1 parent 37ec215 commit 6cfccd9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/docker-publish-multi-platform.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
env:
99
REGISTRY: ghcr.io
10-
IMAGE_NAME: ${{ github.repository | lower }}
10+
IMAGE_NAME: ${{ downcase(github.repository) }}
1111

1212
jobs:
1313
build-and-push:
@@ -41,7 +41,7 @@ jobs:
4141
id: meta
4242
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f #5.8.0
4343
with:
44-
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME | lower }}
44+
images: ${{ env.REGISTRY }}/${{ downcase(env.IMAGE_NAME) }}
4545
flavor: |
4646
latest=false
4747
tags: |
@@ -65,8 +65,8 @@ jobs:
6565
org.opencontainers.image.revision=${{ github.sha }}
6666
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
6767
cache-from: |
68-
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME | lower }}:cache
68+
type=registry,ref=${{ env.REGISTRY }}/${{ downcase(env.IMAGE_NAME) }}:cache
6969
type=gha
7070
cache-to: |
7171
type=gha,mode=max
72-
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME | lower }}:cache,mode=max
72+
type=registry,ref=${{ env.REGISTRY }}/${{ downcase(env.IMAGE_NAME) }}:cache,mode=max

0 commit comments

Comments
 (0)