Skip to content

Conversation

hanxizh9910
Copy link
Contributor

Summary

Fixes #23.
This PR fixes the GitHub Actions CI workflow to properly handle cases where Docker Hub secrets are not set.

Changes

  • Skip Docker login, push, and artifact steps if Docker Hub secrets are missing.
  • Add a prepare job to detect secrets and control job/step execution.
  • Clean up dummy/test logic and focus CI on essential build, test, and push steps.

Testing

  • Verified that the workflow runs without secrets.
  • Verified that the workflow pushes to Docker Hub when secrets are set.

Branch Reference

Based on branch issue-23-ci-without-secrets.

@hanxizh9910 hanxizh9910 changed the title Modified ci.yml to run without fail when there is no secrets Fix CI workflow to handle missing Docker Hub secrets Sep 30, 2025
Copy link
Member

@Nikhil-Manglore Nikhil-Manglore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@sarthakaggarwal97 sarthakaggarwal97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @hanxizh9910. Minor comments. @roshkhatri do you also wanna take a look?

Signed-off-by: Hanxi Zhang <[email protected]>
Signed-off-by: Hanxi Zhang <[email protected]>
Signed-off-by: Hanxi Zhang <[email protected]>
Signed-off-by: Hanxi Zhang <[email protected]>
Signed-off-by: Hanxi Zhang <[email protected]>
Signed-off-by: Hanxi Zhang <[email protected]>
…n when make a PR or push to mainline

Signed-off-by: Hanxi Zhang <[email protected]>
@hanxizh9910
Copy link
Contributor Author

hanxizh9910 commented Oct 15, 2025

I tested this by making dummy changes and merging them into my mainline branch
When there are secrets(i used my dockerhub account):
Screenshot 2025-10-15 at 3 08 54 PM
Pushing to dockerhub: https://hub.docker.com/repository/docker/hanxizh/valkey-bundle/general

When there is no secret:
Screenshot 2025-10-15 at 3 09 12 PM

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.

CI fails on forks

3 participants