Skip to content

Commit 9044077

Browse files
committed
fix: Set lowercase repository name for Docker image tag
1 parent 742474a commit 9044077

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/docker.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
registry: ${{ env.REGISTRY }}
3232
username: ${{ github.actor }}
3333
password: ${{ secrets.GITHUB_TOKEN }}
34+
- name: Set lowercase repository name
35+
run: |
36+
echo "REPO_LC=${GITHUB_REPOSITORY@L}" >> $GITHUB_ENV
3437
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
3538
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see [Usage](https://github.com/docker/build-push-action#usage) in the README of the `docker/build-push-action` repository.
3639
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
@@ -40,4 +43,4 @@ jobs:
4043
with:
4144
context: .
4245
push: true
43-
tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ github.ref_name }}
46+
tags: ${{ env.REGISTRY }}/${{ env.REPO_LC }}:${{ github.ref_name }}

0 commit comments

Comments
 (0)