Skip to content

asgoodasnu/agan-docker-compose-workflow

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

AGAN docker compose action for GitHub

This action allows to run docker compose in your step and cleans up before the action is finished.

Usage

Inputs

compose-file

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

services

Optional You CAN specify one or more services which you want to start.

Example:

services: |
  serviceA
  serviceB

compose-options

Optional You CAN specify some compose options (see COMPOSE DOCU)

compose-up-options

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'

compose-down-options

Optional You CAN specify some compose up options (see COMPOSE DOWN DOCU)

DEFAULT is and not overrideable: --volumes
Allowed Options are:
  '--remove-orphans',
  '--rmi'

EXAMPLE Usage

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'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published