Skip to content

Commit

Permalink
use default docker repo name if variable is not defined (#6870)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrii Chubatiuk <[email protected]>
  • Loading branch information
AndrewChubatiuk and Andrii Chubatiuk authored Apr 10, 2024
1 parent 776703f commit d7247f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/preview-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ jobs:
if [[ "${{ vars.DOCKER_REPO }}" != "" ]]; then
echo "DOCKER_REPO=${{ vars.DOCKER_REPO }}" >> $GITHUB_ENV
echo "DOCKER_REPO=${{ vars.DOCKER_REPO }}" >> $GITHUB_OUTPUT
else
echo "DOCKER_REPO=${DOCKER_REPO}" >> $GITHUB_ENV
echo "DOCKER_REPO=${DOCKER_REPO}" >> $GITHUB_OUTPUT
fi
- name: Build and push preview image to Docker Hub
uses: docker/build-push-action@v5
Expand Down

0 comments on commit d7247f8

Please sign in to comment.