This action allows to run docker compose in your step and cleans up before the action is finished.
required You must specify at least one docker compose config file. The path MUST be relative to your root.
Example:
compose-file: |
./docker-compose.yaml
./compose.yml
Optional You CAN specify one or more services which you want to start.
Example:
services: |
serviceA
serviceB
Optional You CAN specify some compose options (see COMPOSE DOCU)
Optional You CAN specify some compose up options (see COMPOSE UP DOCU)
DEFAULT is and not overrideable: --detach
Allowed Options are:
'--abort-on-container-exit',
'--build',
'--exit-code-from',
'--no-deps',
'--pull',
'--quiet-pull',
'--wait'
Optional You CAN specify some compose up options (see COMPOSE DOWN DOCU)
DEFAULT is and not overrideable: --volumes
Allowed Options are:
'--remove-orphans',
'--rmi'
steps:
- name: Test default Action
id: test-default
uses: 'asgoodasnu/[email protected]'
with:
compose-file: './docker-compose.yml'
services: |
service1
compose-options: '--project-name test-default'
compose-up-options: '--build --quiet-pull'
compose-down-options: '--rmi all'