Skip to content

Commit 2c3eecb

Browse files
committed
fix image name in lowercase
1 parent f280378 commit 2c3eecb

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/dev-build-push-ghcr.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717
packages: write
1818

1919
env:
20-
IMAGE_NAME: ${{ github.repository_owner }}/coordinatecore
20+
IMAGE_NAME: coordinatecore
2121
ENV_TYPE: dev
2222

2323
jobs:
@@ -57,6 +57,11 @@ jobs:
5757
release_branches: dev,main
5858
default_bump: patch # can be major/minor/patch
5959

60+
- name: Set lowercase owner name
61+
id: lowercase
62+
run: |
63+
echo "owner=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
64+
6065
- name: Install Dependencies
6166
run: |
6267
# Wait for apt lock to be released
@@ -110,7 +115,7 @@ jobs:
110115
id: meta
111116
uses: docker/metadata-action@v5
112117
with:
113-
images: ghcr.io/${{ env.IMAGE_NAME }}
118+
images: ghcr.io/${{ steps.lowercase.outputs.owner }}/${{ env.IMAGE_NAME }}
114119
tags: |
115120
type=raw,value=${{ steps.tag.outputs.new_tag }}
116121
type=raw,value=latest
@@ -123,5 +128,5 @@ jobs:
123128
push: true
124129
tags: ${{ steps.meta.outputs.tags }}
125130
labels: ${{ steps.meta.outputs.labels }}
126-
cache-from: type=registry,ref=ghcr.io/${{ env.IMAGE_NAME }}:buildcache
127-
cache-to: type=registry,ref=ghcr.io/${{ env.IMAGE_NAME }}:buildcache,mode=max
131+
cache-from: type=registry,ref=ghcr.io/${{ steps.lowercase.outputs.owner }}/${{ env.IMAGE_NAME }}:buildcache
132+
cache-to: type=registry,ref=ghcr.io/${{ steps.lowercase.outputs.owner }}/${{ env.IMAGE_NAME }}:buildcache,mode=max

0 commit comments

Comments
 (0)