Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
11.5M

Launch a composition launch-composition

Run and externally expose a docker-compose build.

arguments

  • composition - The composition you want to run. It can be an inline YAML definition, a path to a composition file on the file system, or the logical name of a composition stored in the Codefresh system.
  • composition_variables - A set of environment variables to substitute in the composition.
  • working_directory - The directory in which to search for the composition file. It can be an explicit path in the container’s file system, or a variable that references another step. The default is ${{main_clone}}.
    Launch-Composition:
  title: Running docker image
  type: launch-composition
  arguments:
    composition:
      version: '2'
      services:
        app:
          image: 'owner/app:latest'
        db:
          image: mongo
    environment_name: environment name

  
github.com
Codefresh INC
Apr 14, 2020