Skip to content

Commit 5d3bc84

Browse files
committed
šŸ› lowercase ghcr repo slug
1 parent 1ff15c3 commit 5d3bc84

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ā€Ž.github/workflows/publish-image.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,17 @@ jobs:
2222
username: ${{ github.actor }}
2323
password: ${{ secrets.GITHUB_TOKEN }}
2424

25+
- name: Format repo slug
26+
uses: actions/github-script@v4
27+
id: repo_slug
28+
with:
29+
result-encoding: string
30+
script: return `ghcr.io/${github.repository.toLowerCase()}`
31+
2532
- name: Build and push Docker image
2633
uses: docker/build-push-action@v6
2734
with:
2835
context: .
2936
file: docker/Dockerfile
3037
push: true
31-
tags: "ghcr.io/${{ github.repository_owner }}/lumos-discord-bot:latest"
38+
tags: "ghcr.io/${{ steps.repo_slug.outputs.result }}:latest"

0 commit comments

Comments
Ā (0)