From 95b8f7b3df18c216ee47b19bf51c235fa9131fae Mon Sep 17 00:00:00 2001 From: John Maguire Date: Mon, 8 Jan 2024 17:23:30 -0500 Subject: [PATCH] another fix --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2035b6a5e..1180f3b77 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -117,8 +117,6 @@ jobs: runs-on: ubuntu-latest env: HAS_DOCKER_CREDS: ${{ secrets.DOCKERHUB_USERNAME != '' && secrets.DOCKERHUB_TOKEN != '' }} - DOCKER_IMAGE_NAME: ${{ env.DOCKER_IMAGE_NAME || 'nebula' }} - DOCKER_IMAGE_TAG: ${{ env.DOCKER_IMAGE_TAG || 'latest' }} # XXX It's not possible to write a conditional here, so instead we do it on every step #if: ${{ env.HAS_DOCKER_CREDS == 'true' }} steps: @@ -148,6 +146,9 @@ jobs: - name: Build and push images if: ${{ env.HAS_DOCKER_CREDS == 'true' }} + env: + DOCKER_IMAGE_NAME: ${{ env.DOCKER_IMAGE_NAME || 'nebula' }} + DOCKER_IMAGE_TAG: ${{ env.DOCKER_IMAGE_TAG || 'latest' }} run: | make DOCKER_IMAGE_NAME="${DOCKER_IMAGE_NAME}" DOCKER_BUILD_ARGS="--push" all-docker