Skip to content

Commit

Permalink
Merge pull request #4 from HCookie/fix-repo-name
Browse files Browse the repository at this point in the history
fix repo name
  • Loading branch information
HCookie authored Oct 17, 2024
2 parents 6e6559d + 71021cc commit 516b5a6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ jobs:
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349
- name: Format repo slug
uses: actions/github-script@v4
id: repo_slug
with:
result-encoding: string
script: return `ghcr.io/${github.repository.toLowerCase()}`
- name: Log in to the Container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
Expand All @@ -69,9 +75,9 @@ jobs:
file: ./Dockerfile
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.create_release.outputs.full-tag }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.create_release.outputs.short-tag }}
${{ env.REGISTRY }}/${{ steps.repo_slug.outputs.result }}:latest
${{ env.REGISTRY }}/${{ steps.repo_slug.outputs.result }}:${{ needs.create_release.outputs.full-tag }}
${{ env.REGISTRY }}/${{ steps.repo_slug.outputs.result }}:${{ needs.create_release.outputs.short-tag }}
platforms: linux/amd64
provenance: false
sbom: false
Expand Down

0 comments on commit 516b5a6

Please sign in to comment.