Skip to content

Commit d92d138

Browse files
authored
Update docker-image.yml (#57)
* Update docker-image.yml Signed-off-by: fedjo <mari.giorgos@gmail.com> * Add missing '$' Signed-off-by: fedjo <mari.giorgos@gmail.com> --------- Signed-off-by: fedjo <mari.giorgos@gmail.com>
1 parent 39b2173 commit d92d138

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/docker-image.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,18 @@ jobs:
3636
username: ${{ github.repository_owner }}
3737
password: ${{ secrets.GITHUB_TOKEN }}
3838

39+
- name: Set lowercase repository name
40+
run: |
41+
echo "REPO_LOWER=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
42+
3943
- name: Build and push Docker image
4044
id: docker_build
4145
uses: docker/build-push-action@v6
4246
with:
4347
context: .
4448
push: true
4549
tags: |
46-
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
50+
ghcr.io/${{ env.REPO_LOWER }}:${{ github.ref_name }}
4751
${{ github.ref_name == 'main' && format('ghcr.io/{0}:latest', github.repository) || '' }}
4852
cache-from: type=gha
49-
cache-to: type=gha,mode=max
53+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)