zahid0/Create Docker Hub Repository
Creates a Docker Hub repository if it does not already exist. Idempotent — safe to call on every workflow run.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| dockerhub_username | Docker Hub username used to authenticate (generate a token at hub.docker.com → Account Settings → Security). | yes | — |
| dockerhub_token | Docker Hub Personal Access Token (PAT) with Read/Write permissions. | yes | — |
| namespace | Docker Hub namespace (your username or organisation name) that owns the repository. | yes | — |
| repository | Repository name to create (e.g. my-app). | yes | — |
| description | Short description shown on the Docker Hub repository page (max 100 chars). | no | "" |
| full_description | Long description / README content for the repository (Markdown supported). | no | "" |
| is_private | Set to 'true' to create a private repository. Defaults to 'false' (public). | no | false |
| registry | Registry hostname. Almost always 'docker.io'. | no | docker.io |
Outputs
| name | description |
|---|---|
| created | 'true' if the repository was created by this action, 'false' if it already existed. |
| repository_url | Full URL to the Docker Hub repository page. |
| already_existed | 'true' if the repository already existed before this action ran. |