Skip to content

Commit 827cc8f

Browse files
authored
Update WebGSM-Docker.yml
1 parent 4afcbbc commit 827cc8f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/WebGSM-Docker.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: WebGSM-Docker.yml # Build and Publish
1+
name: WebGSM-Docker # Build and Publish
22

33
on:
44
push:
@@ -17,6 +17,9 @@ jobs:
1717
- name: Set up Docker
1818
uses: docker/setup-buildx-action@v2
1919

20+
- name: Set lowercase repository owner
21+
run: echo "REPOSITORY_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
22+
2023
- name: Log in to GitHub Container Registry
2124
uses: docker/login-action@v2
2225
with:
@@ -30,6 +33,5 @@ jobs:
3033
context: .
3134
push: true
3235
tags: |
33-
ghcr.io/${{ github.repository_owner | toLower() }}/webgsm:latest
34-
ghcr.io/${{ github.repository_owner | toLower() }}/webgsm:${{ github.run_number }}
35-
36+
ghcr.io/${{ env.REPOSITORY_OWNER }}/webgsm:latest
37+
ghcr.io/${{ env.REPOSITORY_OWNER }}/webgsm:${{ github.run_number }}

0 commit comments

Comments
 (0)