Skip to content

Commit

Permalink
Use if/then/else for not masking away fail to docker login
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Dec 19, 2024
1 parent dbfd189 commit fff4f12
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/cli-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ jobs:

- name: Build Docker image
run: |
[ -n "$DOCKER_LOGIN$DOCKER_TOKEN" ] \
&& docker login -u "$DOCKER_LOGIN" --password-stdin <<<"$DOCKER_TOKEN" \
|| echo "Not login-in to docker since no credentials were provided, might hit limits below"
if [ -n "$DOCKER_LOGIN$DOCKER_TOKEN" ]; then
docker login -u "$DOCKER_LOGIN" --password-stdin <<<"$DOCKER_TOKEN"
else
echo "Not login-in to docker since no credentials were provided, might hit limits below"
fi
docker build \
-t dandiarchive/dandiarchive-api \
-f dev/django-public.Dockerfile \
Expand Down

0 comments on commit fff4f12

Please sign in to comment.