How to configure secrets for CI/CD workflows.
| Secret | Description |
|---|---|
DOCKERHUB_USERNAME |
Docker Hub username |
DOCKERHUB_TOKEN |
Docker Hub access token |
- Go to Docker Hub → Account Settings → Security
- Click New Access Token
- Name it (e.g.,
github-actions) - Select Read & Write permissions
- Copy the token (shown only once)
Docs: Docker Hub Access Tokens
-
Go to your GitHub repository → Settings → Secrets and variables → Actions
-
Click New repository secret
-
Add each secret:
Name Value DOCKERHUB_USERNAMEYour Docker Hub username DOCKERHUB_TOKENAccess token from step 1
Docs: GitHub Encrypted Secrets
After pushing a tag, check Actions tab in GitHub to see workflow status.
git tag v0.1.0
git push origin v0.1.0