We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ff15c3 commit 5d3bc84Copy full SHA for 5d3bc84
ā.github/workflows/publish-image.yml
@@ -22,10 +22,17 @@ jobs:
22
username: ${{ github.actor }}
23
password: ${{ secrets.GITHUB_TOKEN }}
24
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
+
32
- name: Build and push Docker image
33
uses: docker/build-push-action@v6
34
with:
35
context: .
36
file: docker/Dockerfile
37
push: true
- tags: "ghcr.io/${{ github.repository_owner }}/lumos-discord-bot:latest"
38
+ tags: "ghcr.io/${{ steps.repo_slug.outputs.result }}:latest"
0 commit comments