Compose Action
The Compose Action validates and translates docker-compose.yml files into Quant Cloud’s internal format. Use this when you have existing docker-compose files or prefer compose-based configuration.
Repository: quantcdn/quant-cloud-compose-action
What It Does
Section titled “What It Does”- Validates docker-compose syntax
- Translates to Quant Cloud format
- Applies image suffixes for consistent tagging
- Outputs translated spec for environment action
Inputs
Section titled “Inputs”| Input | Required | Description |
|---|---|---|
api_key | Yes | Quant API key |
organization | Yes | Organization ID |
compose_file | Yes | Path to docker-compose.yml |
base_url | No | API URL (defaults to production) |
image_suffix | No | Suffix for internal image tags |
image_tag_updates | No | JSON map for specific tag overrides |
Outputs
Section titled “Outputs”| Output | Description |
|---|---|
translated_compose | Service definition JSON for environment action |
Basic Usage
Section titled “Basic Usage”- uses: quantcdn/quant-cloud-compose-action@v1 id: compose with: api_key: ${{ secrets.QUANT_API_KEY }} organization: ${{ secrets.QUANT_ORGANIZATION }} compose_file: docker-compose.yml
- uses: quantcdn/quant-cloud-environment-action@v1 with: compose_spec: ${{ steps.compose.outputs.translated_compose }}With Image Suffix (Recommended)
Section titled “With Image Suffix (Recommended)”Use with init action’s image_suffix output for feature branches:
- uses: quantcdn/quant-cloud-init-action@v1 id: init
- uses: quantcdn/quant-cloud-compose-action@v1 id: compose with: api_key: ${{ secrets.QUANT_API_KEY }} organization: ${{ secrets.QUANT_ORGANIZATION }} compose_file: docker-compose.yml image_suffix: ${{ steps.init.outputs.image_suffix_clean }}This transforms internal images from nginx → nginx-feature-xyz.
Supported Features
Section titled “Supported Features”See Docker Compose Import Guide for complete feature list including:
- Commands and entrypoints
- Environment variables
- Health checks
- Container dependencies
- Volume mounts
- Resource limits
- And more
Next Steps
Section titled “Next Steps”- Environment Action - Deploy translated specs
- Docker Compose features