Skip to content

Commit 8249787

Browse files
committed
github repo name to lower case bash
1 parent 62219dc commit 8249787

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/docker-to-ghcr.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@ jobs:
3131
restore-keys: |
3232
${{ runner.os }}-buildx-
3333
34+
- name: downcase REPO
35+
run: echo "REPO=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
36+
3437
- name: Client -> Build and push Docker image
3538
uses: docker/build-push-action@v3
3639
with:
3740
context: ./client
3841
file: ./client/Dockerfile
3942
push: true
40-
tags: ghcr.io/${{ github.repository.toLowerCase() }}/client:latest
43+
tags: ghcr.io/${{ env.REPO }}/client:latest
4144
platforms: linux/amd64
4245

4346
- name: Server -> Build and push Docker image
@@ -46,5 +49,5 @@ jobs:
4649
context: ./server
4750
file: ./server/Dockerfile
4851
push: true
49-
tags: ghcr.io/${{ github.repository.toLowerCase() }}/server:latest
52+
tags: ghcr.io/${{ env.REPO }}/server:latest
5053
platforms: linux/amd64

0 commit comments

Comments
 (0)