Feature Request
Deployment Workflow Updates
Current Situation
- The existing GitHub Actions workflow only supports staging deployments.
- Domain routing is based on hardcoded values instead of environment-driven logic.
Required Updates
1. Input Parameter
2. Environment Variables
Ensure the following environment variables are available:
CLERK_PUBLISHABLE_KEY
DOCKERHUB_TOKEN
PROD_CLERK_PUBLISHABLE_KEY
PROD_VM_PASSWORD
VM_PASSWORD
3. Docker Image Builds
- Staging build: Use
CLERK_PUBLISHABLE_KEY.
- Production build: Use
PROD_CLERK_PUBLISHABLE_KEY.
- Push both images to DockerHub (uberhub).
4. Deployment Logic
-
Staging:
- Build Docker images.
- Push to DockerHub.
- Deploy to staging.
- Verify at
staging.visualaiagentsbuilder.com.
-
Production:
- Skip Docker build.
- Use prebuilt Docker image with
PROD_CLERK_PUBLISHABLE_KEY.
- Deploy to
visualaiagentsbuilder.com.
5. GitHub Actions & Script Updates
Next Steps:
- Refactor GitHub Actions workflows.
- Add environment-aware logic to the deployment script.
- Test end-to-end staging and production flows.
Motivation
NA
Your Contribution
NA
Feature Request
Deployment Workflow Updates
Current Situation
Required Updates
1. Input Parameter
Replace domain name input with a single parameter:
stagingorprod.Automatically map input to:
staging→staging.visualaiagentsbuilder.comprod→visualaiagentsbuilder.com2. Environment Variables
Ensure the following environment variables are available:
CLERK_PUBLISHABLE_KEYDOCKERHUB_TOKENPROD_CLERK_PUBLISHABLE_KEYPROD_VM_PASSWORDVM_PASSWORD3. Docker Image Builds
CLERK_PUBLISHABLE_KEY.PROD_CLERK_PUBLISHABLE_KEY.4. Deployment Logic
Staging:
staging.visualaiagentsbuilder.com.Production:
PROD_CLERK_PUBLISHABLE_KEY.visualaiagentsbuilder.com.5. GitHub Actions & Script Updates
Update both GitHub Actions workflow files.
Update deployment script to accept a new parameter (
stagingorprod).Script should:
Next Steps:
Motivation
NA
Your Contribution
NA