Skip to content

ci: drop redundant docker login from docker_push.sh#963

Merged
JohannesLichtenberger merged 1 commit intomainfrom
fix/dockerhub-login-script
Apr 29, 2026
Merged

ci: drop redundant docker login from docker_push.sh#963
JohannesLichtenberger merged 1 commit intomainfrom
fix/dockerhub-login-script

Conversation

@JohannesLichtenberger
Copy link
Copy Markdown
Member

Summary

Deploy to OSSRH and Docker Hub job has been failing on every push to main with:

Must provide --username with --password-stdin

— see run 25133490213.

Cause: docker_push.sh runs its own docker login using $DOCKER_USERNAME / $DOCKER_PASSWORD. Those env vars are not exported by the workflow — authentication is already handled by the previous step (docker/login-action@v3, with DOCKERHUB_USERNAME / DOCKERHUB_TOKEN). So the script's login runs without credentials and aborts.

This PR removes the redundant login and adds set -euo pipefail so future build/push failures surface clearly.

Test plan

  • Push to main triggers the Deploy to OSSRH and Docker Hub job; the Docker Hub step now succeeds (docker compose build / docker compose push run with the credentials established by docker/login-action).
  • Local bash -n docker_push.sh parses cleanly.

The workflow's `Login to Docker Hub` step (docker/login-action@v3)
already authenticates against Docker Hub before this script runs.
The script's own `docker login` reads $DOCKER_USERNAME and
$DOCKER_PASSWORD, which the workflow does not export — so it failed
with `Must provide --username with --password-stdin` on every push to
main, blocking the deploy job.

Drop the redundant login and add `set -euo pipefail` so any future
build/push failure surfaces clearly instead of being masked.
@JohannesLichtenberger JohannesLichtenberger merged commit 8b3a008 into main Apr 29, 2026
5 checks passed
@JohannesLichtenberger JohannesLichtenberger deleted the fix/dockerhub-login-script branch April 29, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant