Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bwbohl authored Feb 26, 2025
1 parent 558a4cc commit 431f420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ env:
IMAGE_NAME: ${{ github.repository }}
# github repository name as <repo>
# might even be set through echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//" if usernames on GitHub and DockerHub are identical
DOCKERHUB_IMAGE_NAME:
DOCKERHUB_IMAGE_NAME: ""
# boolean whether to push or not
PUSH: false

Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:

# Set DOCKERHUB_IMAGE_NAME
- name: Set DOCKERHUB_IMAGE_NAME
if: github.repository_owner == secrets.DOCKERHUB_USERNAME
if: github.repository_owner == ${{ secrets.DOCKERHUB_USERNAME }}
run: echo "DOCKERHUB_IMAGE_NAME=$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//" >> $GITHUB_ENV

# Extract metadata (tags, labels) for Docker
Expand Down

0 comments on commit 431f420

Please sign in to comment.