Fix GHCR tag casing in workflow.
Normalize ghcr.io repository tags to lowercase before buildx push so Docker accepts fork owner/repo names with uppercase characters. Made-with: Cursor
This commit is contained in:
parent
af04080346
commit
a25ed92a33
1 changed files with 7 additions and 5 deletions
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
|
|
@ -5,9 +5,6 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
|
|
||||||
env:
|
|
||||||
GHCR_REPOSITORY: ghcr.io/${{ github.repository }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
quality-checks:
|
quality-checks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -71,12 +68,16 @@ jobs:
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v4
|
uses: docker/setup-buildx-action@v4
|
||||||
|
-
|
||||||
|
name: Prepare GHCR repository name
|
||||||
|
id: ghcr_repo
|
||||||
|
run: echo "value=$(echo "ghcr.io/${GITHUB_REPOSITORY}" | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
|
||||||
-
|
-
|
||||||
name: Prepare image tags
|
name: Prepare image tags
|
||||||
id: image_tags
|
id: image_tags
|
||||||
env:
|
env:
|
||||||
DOCKERHUB_REPOSITORY: ${{ env.DOCKERHUB_REPOSITORY }}
|
DOCKERHUB_REPOSITORY: ${{ env.DOCKERHUB_REPOSITORY }}
|
||||||
GHCR_REPOSITORY: ${{ env.GHCR_REPOSITORY }}
|
GHCR_REPOSITORY: ${{ steps.ghcr_repo.outputs.value }}
|
||||||
DATE: ${{ steps.date.outputs.date }}
|
DATE: ${{ steps.date.outputs.date }}
|
||||||
run: |
|
run: |
|
||||||
{
|
{
|
||||||
|
|
@ -185,11 +186,12 @@ jobs:
|
||||||
id: release_body
|
id: release_body
|
||||||
env:
|
env:
|
||||||
DOCKERHUB_REPO: ${{ secrets.DOCKERHUB_REPOSITORY }}
|
DOCKERHUB_REPO: ${{ secrets.DOCKERHUB_REPOSITORY }}
|
||||||
GHCR_REPO: ${{ env.GHCR_REPOSITORY }}
|
GHCR_REPO: ghcr.io/${{ github.repository }}
|
||||||
DATE: ${{ steps.date.outputs.date }}
|
DATE: ${{ steps.date.outputs.date }}
|
||||||
HAS_COMMITS: ${{ steps.commits.outputs.has_commits }}
|
HAS_COMMITS: ${{ steps.commits.outputs.has_commits }}
|
||||||
COMMITS: ${{ steps.commits.outputs.commits }}
|
COMMITS: ${{ steps.commits.outputs.commits }}
|
||||||
run: |
|
run: |
|
||||||
|
GHCR_REPO="$(echo "${GHCR_REPO}" | tr '[:upper:]' '[:lower:]')"
|
||||||
{
|
{
|
||||||
echo '## Docker Images'
|
echo '## Docker Images'
|
||||||
echo ''
|
echo ''
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue