Skip to content

Commit 495778c

Browse files
committed
Lowercase the repository name.
To please buildx
1 parent afbbb0f commit 495778c

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/docker-3.2.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
runs-on: ubuntu-24.04
2121

2222
steps:
23+
- name: lowercase the repository name
24+
run: echo "REPO=${GITHUB_REPOSITORY@L}" >> "${GITHUB_ENV}"
25+
2326
- name: Source checkout
2427
uses: actions/checkout@v4
2528

@@ -35,11 +38,11 @@ jobs:
3538
id: docker_meta
3639
uses: docker/metadata-action@v5
3740
with:
38-
images: ${{ github.repository }}
41+
images: ${{ env.REPO }}
3942
labels: |
4043
org.opencontainers.image.version=${{ env.GIT_BRANCH }}
4144
org.opencontainers.image.revision=${{ github.sha }}
42-
org.opencontainers.image.title=${{ github.repository }}
45+
org.opencontainers.image.title=${{ env.REPO }}
4346
4447
- name: GitHub login
4548
if: ${{ github.event_name != 'pull_request' }}
@@ -61,5 +64,5 @@ jobs:
6164
cache-to: type=gha, scope=${{ github.workflow }}
6265
labels: ${{ steps.docker_meta.outputs.labels }}
6366
tags: |
64-
ghcr.io/${{ github.repository }}:${{ env.GIT_BRANCH }}
65-
ghcr.io/${{ github.repository }}:latest
67+
ghcr.io/${{ env.REPO }}:${{ env.GIT_BRANCH }}
68+
ghcr.io/${{ env.REPO }}:latest

0 commit comments

Comments
 (0)