Skip to content

Commit 0119041

Browse files
committed
Fix image name variable
1 parent 390b00e commit 0119041

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/docker-publish.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ on:
1313
env:
1414
# Use docker.io for Docker Hub if empty
1515
REGISTRY: ghcr.io
16-
# github.repository as <account>/<repo>
17-
IMAGE_NAME: ${{ github.repository }}
1816

1917
concurrency:
2018
group: ${{ github.workflow }}-${{ github.ref }}
@@ -36,6 +34,11 @@ jobs:
3634
steps:
3735
- name: Checkout repository
3836
uses: actions/checkout@v4
37+
38+
- name: Convert image name to lowercase
39+
run: |
40+
GITHUB_REPOSITORY="${{ github.repository }}"
41+
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
3942
4043
# Set up BuildKit Docker container builder to be able to build
4144
# multi-platform images and export cache
@@ -103,6 +106,10 @@ jobs:
103106
permissions:
104107
packages: write
105108
steps:
109+
- name: Convert image name to lowercase
110+
run: |
111+
GITHUB_REPOSITORY="${{ github.repository }}"
112+
echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
106113
- name: Download digests
107114
uses: actions/download-artifact@v3
108115
with:
@@ -128,4 +135,4 @@ jobs:
128135
$(printf '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)
129136
- name: Inspect image
130137
run: |
131-
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}
138+
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}

0 commit comments

Comments
 (0)