Skip to content

GitHub Actions Overview

Quant Cloud provides a complete suite of official GitHub Actions to automate your deployment workflows. These actions work together to provide seamless CI/CD integration for containerized applications.

ActionPurposeRepository
InitInitialize deployment, authenticate registry, detect environmentquant-cloud-init-action
ComposeTranslate docker-compose filesquant-cloud-compose-action
EnvironmentCreate/update environmentsquant-cloud-environment-action
ActionPurposeRepository
Environment VarsManage environment variables and secretsquant-cloud-environment-var-action
SyncSync databases and files between environmentsquant-cloud-environment-sync-action
BackupCreate backups and manage retentionquant-cloud-environment-backup-action

Most deployments follow this pattern:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
# 1. Initialize - Authenticate and detect environment
- uses: quantcdn/quant-cloud-init-action@v1
id: init
with:
quant_organization: ${{ secrets.QUANT_ORGANIZATION }}
quant_api_key: ${{ secrets.QUANT_API_KEY }}
# 2. Build and push images (Docker already logged in by init)
- uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.init.outputs.stripped_endpoint }}/...
# 3. Translate compose file (if using docker-compose)
- uses: quantcdn/quant-cloud-compose-action@v1
id: compose
with:
compose_file: docker-compose.yml
# 4. Deploy environment
- uses: quantcdn/quant-cloud-environment-action@v1
with:
operation: update
compose_spec: ${{ steps.compose.outputs.translated_compose }}
  1. GitHub Repository with your application code
  2. Quant Cloud Account with:
    • Organization ID
    • API Key (from dashboard)
  3. Docker Images or docker-compose.yml file
  1. Add secrets to your repository:

    • QUANT_ORGANIZATION - Your org ID
    • QUANT_API_KEY - Your API key
  2. Create workflow file: .github/workflows/deploy.yml

  3. Choose your workflow pattern:

Essential for getting your code deployed:

For ongoing management and operations:

Deploy to production when code is merged to main branch. See workflow example →

Automatically create preview environments for pull requests. See workflow example →

Deploy feature branches to isolated environments. See workflow example →

Sync production database to staging for testing. See workflow example →

Automate daily backups with retention policies. See workflow example →

  1. Always start with Init Action - It handles authentication and environment detection
  2. Use image suffixes - Leverage image_suffix output from init for consistent tagging
  3. Validate before deploy - Use compose validation for complex configurations
  4. Protect production - Use GitHub environment protection rules
  5. Clean up previews - Remove PR environments when PRs are closed
  6. Monitor workflows - Set up notifications for deployment failures