Skip to content

Updating github actions for prod #70

Description

@SaravanakumarR2018

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

  • Replace domain name input with a single parameter: staging or prod.

  • Automatically map input to:

    • stagingstaging.visualaiagentsbuilder.com
    • prodvisualaiagentsbuilder.com

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:

    1. Build Docker images.
    2. Push to DockerHub.
    3. Deploy to staging.
    4. Verify at staging.visualaiagentsbuilder.com.
  • Production:

    1. Skip Docker build.
    2. Use prebuilt Docker image with PROD_CLERK_PUBLISHABLE_KEY.
    3. Deploy to visualaiagentsbuilder.com.

5. GitHub Actions & Script Updates

  • Update both GitHub Actions workflow files.

  • Update deployment script to accept a new parameter (staging or prod).

  • Script should:

    • Handle environment selection.
    • Trigger the correct deployment steps.

Next Steps:

  1. Refactor GitHub Actions workflows.
  2. Add environment-aware logic to the deployment script.
  3. Test end-to-end staging and production flows.

Motivation

NA

Your Contribution

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions