From d7247f8b849e37d0c274eebb087e3be409d38ed2 Mon Sep 17 00:00:00 2001 From: Andrii Chubatiuk Date: Wed, 10 Apr 2024 23:15:43 +0300 Subject: [PATCH] use default docker repo name if variable is not defined (#6870) Co-authored-by: Andrii Chubatiuk --- .github/workflows/preview-image.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/preview-image.yml b/.github/workflows/preview-image.yml index 93de23a478..9a691fb6f4 100644 --- a/.github/workflows/preview-image.yml +++ b/.github/workflows/preview-image.yml @@ -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