This guide will help you set up GitHub repository secrets to enable automated Docker image builds and pushes.
- A Docker Hub account (create one at https://hub.docker.com if needed)
- Write access to the GitHub repository
Go to: https://github.com/FullstackAgent/fullstack-runtime-builder/settings/secrets/actions
Or manually:
- Open the repository: https://github.com/FullstackAgent/fullstack-runtime-builder
- Click on "Settings" tab
- In the left sidebar, click "Secrets and variables" → "Actions"
- Click "New repository secret"
- Name:
DOCKER_HUB_USERNAME - Secret: Enter your Docker Hub username (e.g.,
fullstackagent) - Click "Add secret"
- Click "New repository secret"
- Name:
DOCKER_HUB_PASSWORD - Secret: Enter your Docker Hub password or access token
- Click "Add secret"
Security Note: It's recommended to use a Docker Hub access token instead of your password:
- Go to: https://hub.docker.com/settings/security
- Click "New Access Token"
- Description: "GitHub Actions for fullstack-runtime-builder"
- Access permissions: "Read & Write"
- Click "Generate"
- Copy the token and use it as the password
- Go to: https://github.com/FullstackAgent/fullstack-runtime-builder/actions
- Click on "Build and Push Docker Image" workflow
- Click "Run workflow" button
- Select branch:
main - Enter a tag (optional, defaults to
latest) - Click "Run workflow"
- Monitor the build at: https://github.com/FullstackAgent/fullstack-runtime-builder/actions
- Green checkmark ✅ = Build successful
- Red X ❌ = Build failed (check logs for details)
Once built successfully, the image will be available at:
The workflow automatically runs when:
- Changes are pushed to
Dockerfile - Changes are pushed to
entrypoint.sh - Changes are pushed to the workflow file itself
# Install GitHub CLI if not already installed
# https://cli.github.com/
# Authenticate with GitHub
gh auth login
# Trigger the workflow
gh workflow run docker-build.yml -f tag="v1.0.0"
# Check workflow runs
gh run list --workflow=docker-build.yml# Use the provided build script
./build.sh --github
# With custom tag
./build.sh --github v1.0.0If the build fails with authentication errors:
- Verify your Docker Hub username is correct
- Regenerate your Docker Hub access token
- Update the
DOCKER_HUB_PASSWORDsecret
Check the workflow logs:
- Go to the Actions tab
- Click on the failed workflow run
- Click on "build-and-push" job
- Review the error messages
- Ensure the build completed successfully
- Check that secrets are correctly configured
- Verify your Docker Hub account has push permissions
- Use Access Tokens: Always use Docker Hub access tokens instead of passwords
- Limit Token Scope: Create tokens with minimal required permissions
- Rotate Tokens: Regularly rotate your access tokens
- Monitor Usage: Check Docker Hub for unexpected image pushes
- Review Logs: Regularly review GitHub Actions logs for suspicious activity
For issues or questions:
- Open an issue: https://github.com/FullstackAgent/fullstack-runtime-builder/issues
- Check GitHub Actions documentation: https://docs.github.com/en/actions
- Docker Hub documentation: https://docs.docker.com/docker-hub/