Skip to content

Conversation

@PythonGermany
Copy link
Contributor

@PythonGermany PythonGermany commented Jan 9, 2026

Summary

Adds functionality to disable publishing image to dockerhub for all workflows in the repository by setting action variable DISABLE_DOCKERHUB_PUBLISH to true in repository settings.

I will be using this in my fork to be able to use all relevant workflows without having to setup dockerhub credentials.

Checklist

  • Tested and/or added tests to validate that the changes work as intended, if applicable.
    • I tested if the new functionality I need works
  • I am not able to verify if the default behavior (publish to both ghcr and dockerhub) is still functional as expected because I have no dockerhub credentials to test it with. If there is interest to merge this I'd appreciate it if someone else could verify that the default behaviour is not broken
  • (n/a) Updated documentation in README.md, if applicable.

@github-actions github-actions bot added the feature New feature or request label Jan 9, 2026
Comment on lines +46 to +50
# multi-line output: both registries, one per line
echo "images<<EOF" >> $GITHUB_OUTPUT
echo "$DOCKER_IMAGE_REPOSITORY" >> $GITHUB_OUTPUT
echo "$GHCR_IMAGE_REPOSITORY" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
Copy link
Contributor Author

@PythonGermany PythonGermany Jan 9, 2026

Choose a reason for hiding this comment

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

This part of the new implementation needs to be tested by someone who has dockerhub credentials set up in their fork.

@PythonGermany PythonGermany marked this pull request as ready for review January 9, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant