dependabot[bot] bc5a3e3ee6 chore(deps): bump the github-actions-dependencies group with 1 update
Bumps the github-actions-dependencies group with 1 update: [hoverkraft-tech/ci-github-common](https://github.com/hoverkraft-tech/ci-github-common).


Updates `hoverkraft-tech/ci-github-common` from 0.11.2 to 0.12.1
- [Release notes](https://github.com/hoverkraft-tech/ci-github-common/releases)
- [Commits](https://github.com/hoverkraft-tech/ci-github-common/compare/0.11.2...0.12.1)

---
updated-dependencies:
- dependency-name: hoverkraft-tech/ci-github-common
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-26 12:49:05 +01:00
2023-07-23 07:38:40 +00:00
2023-07-23 07:37:31 +00:00
2022-10-05 18:15:19 +09:00
2024-03-26 12:44:32 +01:00
2022-10-05 18:15:19 +09:00
2024-03-26 12:44:32 +01:00
2023-07-23 12:05:52 +09:00
2023-07-23 07:37:31 +00:00
2024-03-26 12:44:32 +01:00
2024-03-21 17:10:43 +01:00

Docker Compose Action

This action runs your docker-compose file and clean up before action finished.

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

services

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

up-flags

Optional Used to specify flags to pass to the docker-compose up. 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 up 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: hoverkraft-tech/compose-action@v1.5.1
    with:
      compose-file: "./docker/docker-compose.yml"
      down-flags: "--volumes"
      services: |
        helloworld2
        helloworld3

Using environment variables

steps:
  - uses: actions/checkout@v3
  - uses: hoverkraft-tech/compose-action@v1.5.1
    with:
      compose-file: "./docker/docker-compose.yml"
    env:
      CUSTOM_VARIABLE: "test"
Description
This action runs your docker-compose file and clean up before action finished
Readme MIT 39 MiB
Languages
TypeScript 96.3%
Makefile 2.1%
Dockerfile 0.8%
Shell 0.6%
JavaScript 0.2%