diff --git a/.github/workflows/cli-integration.yml b/.github/workflows/cli-integration.yml index 2e997058a..57fb3b7c8 100644 --- a/.github/workflows/cli-integration.yml +++ b/.github/workflows/cli-integration.yml @@ -19,7 +19,11 @@ jobs: - name: Build Docker image run: | - docker login -u "$DOCKER_LOGIN" --password-stdin <<<"$DOCKER_TOKEN" + if [ -n "$DOCKER_LOGIN$DOCKER_TOKEN" ]; then + docker login -u "$DOCKER_LOGIN" --password-stdin <<<"$DOCKER_TOKEN" + else + echo "Not logging in to docker since no credentials were provided, might hit limits below" + fi docker build \ -t dandiarchive/dandiarchive-api \ -f dev/django-public.Dockerfile \