To enable the automated Docker build and push workflow, you need to configure the following secrets in your GitHub repository:
- Description: Your Docker Hub username
- Value: Your Docker Hub account username (e.g.,
john-doe)
- Description: Your Docker Hub password or access token
- Value: Your Docker Hub password or preferably a Docker Hub access token
- Note: For security, use a Docker Hub access token instead of your password
- Description: The name of your Docker image (without the username prefix)
- Value: The image name (e.g.,
claude-code-docker)
- Go to your GitHub repository
- Click on Settings tab
- In the left sidebar, click Secrets and variables → Actions
- Click New repository secret
- Add each secret with the name and value as specified above
Instead of using your Docker Hub password, create an access token:
- Log in to Docker Hub
- Go to Account Settings → Security
- Click New Access Token
- Give it a descriptive name (e.g., "GitHub Actions")
- Set appropriate permissions (Read, Write, Delete)
- Copy the generated token and use it as the
DOCKER_PASSWORDsecret
The workflow will:
- Run automatically every 12 hours (00:00 and 12:00 UTC)
- Can be triggered manually from the Actions tab
- Automatically increment the patch version from the latest git tag
- Build and push with both the new version tag and
latesttag