Skip to content

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

  1. Validates docker-compose syntax
  2. Translates to Quant Cloud format
  3. Applies image suffixes for consistent tagging
  4. Outputs translated spec for environment action
InputRequiredDescription
api_keyYesQuant API key
organizationYesOrganization ID
compose_fileYesPath to docker-compose.yml
base_urlNoAPI URL (defaults to production)
image_suffixNoSuffix for internal image tags
image_tag_updatesNoJSON map for specific tag overrides
OutputDescription
translated_composeService definition JSON for environment action
- 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 }}

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 nginxnginx-feature-xyz.

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