Skip to content

adrielcodeco/docker-compose-run-action

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Compose Run Action

An Github action to run docker compose services.

Inputs

compose-file

Optional The name of the compose file. Default "./docker-compose.yml".

It can be a list of files:

compose-file: |
  docker-compose.yml
  docker-compose.ci.yml

service

Optional Just perform docker-compose run to one service instead of all of them

command

Optional pass a service command

run-flags

Optional Used to specify flags to pass to the docker-compose run. Default is none. Can be used to pass the --build flag, for example, if you want persistent volumes to be deleted as well during cleanup. A full list of flags can be found in the docker-compose run documentation.

down-flags

Optional Used to specify flags to pass to the docker-compose down command during cleanup. Default is none. Can be used to pass the --volumes flag, for example, if you want persistent volumes to be deleted as well during cleanup. A full list of flags can be found in the docker-compose down documentation.

compose-flags

Optional Used to specify flags to pass to the docker-compose command. Default is none. A full list of flags can be found in the docker-compose documentation.

Example usage

steps:
  # need checkout before using compose-action
  - uses: actions/checkout@v3
  - uses: adrielcodeco/docker-compose-run-action@v1
    with:
      compose-file: './docker-compose.yml'
      service: my-service

Using environment variables

steps:
  - uses: actions/checkout@v3
  - uses: adrielcodeco/docker-compose-run-action@v1
    with:
      compose-file: './docker-compose.yml'
    env:
      MY_VARIABLE: 'test'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published