Skip to content

Commit

Permalink
Coax github actions out of a snafu
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroCC committed Oct 25, 2024
1 parent ffdc180 commit 20a2d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,13 @@ jobs:
id: prepare
run: |
# Sanitize org and repo names
ORG="${{ github.organization }}"
ORG="${{ github.repository_owner }}"
if [[ ${{ matrix.registry }} != "ghcr.io" ]]; then
# Quay & DockerHub don't support dashes in the repository name
ORG="${ORG//\-/}" # Remove dashes from the repository name
fi
REPO="${ORG}/${{ github.repository_name }}"
REPO="${ORG}/${{ github.event.repository.name }}"
REPO="${REPO,,}" # lowercase
echo "REPOSITORY=${{ matrix.registry }}/${REPO}" | tee -a $GITHUB_OUTPUT
Expand Down

0 comments on commit 20a2d58

Please sign in to comment.