Skip to content

Commit 9604b61

Browse files
ga-lepSeptimus4
authored andcommitted
Use Bash parameter expansion to convert image_name to lowercase
1 parent 5e906a7 commit 9604b61

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66

77
env:
88
REGISTRY: ghcr.io
9-
IMAGE_NAME: ${{ toLower(github.repository) }}
109

1110
jobs:
1211
build-and-push:
@@ -18,6 +17,10 @@ jobs:
1817
steps:
1918
- name: Checkout repository
2019
uses: actions/checkout@v4
20+
21+
- name: downcase IMAGE_NAME
22+
run: |
23+
echo "IMAGE_NAME=${GITHUB_REPOSITORY@L}" >> "${GITHUB_ENV}"
2124
2225
- name: Extract version from pyproject.toml
2326
id: version
@@ -51,4 +54,4 @@ jobs:
5154
org.opencontainers.image.version=${{ steps.version.outputs.version }}
5255
org.opencontainers.image.source=${{ github.repositoryUrl }}
5356
org.opencontainers.image.revision=${{ github.sha }}
54-
org.opencontainers.image.licenses=GNU Lesser General Public License v3.0
57+
org.opencontainers.image.licenses=LGPL-3.0-or-later

0 commit comments

Comments
 (0)