Bumps the github-actions-dependencies group with 2 updates: [hoverkraft-tech/ci-github-nodejs](https://github.com/hoverkraft-tech/ci-github-nodejs) and [hoverkraft-tech/ci-github-common](https://github.com/hoverkraft-tech/ci-github-common). Updates `hoverkraft-tech/ci-github-nodejs` from 0.3.2 to 0.4.2 - [Release notes](https://github.com/hoverkraft-tech/ci-github-nodejs/releases) - [Commits](https://github.com/hoverkraft-tech/ci-github-nodejs/compare/0.3.2...0.4.2) Updates `hoverkraft-tech/ci-github-common` from 0.12.0 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.12.0...0.12.1) --- updated-dependencies: - dependency-name: hoverkraft-tech/ci-github-nodejs dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-dependencies - dependency-name: hoverkraft-tech/ci-github-common dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
This action runs your docker-compose file and clean up before action finished
- uses: hoverkraft-tech/compose-action@v0.0.0
with:
# Description: Relative path to compose file(s). It can be a list of files.
#
# Default: ./docker-compose.yml
compose-file: ""
# Description: Services to perform docker-compose up.
#
services: ""
# Description: Additional options to pass to `docker-compose up` command.
#
# Default:
up-flags: ""
# Description: Additional options to pass to `docker-compose down` command.
#
# Default:
down-flags: ""
# Description: Additional options to pass to `docker-compose` command.
#
# Default:
compose-flags: ""
Inputs
| Input | Description | Default | Required |
|---|---|---|---|
compose-file |
Relative path to compose file(s). It can be a list of files. | ./docker-compose.yml |
false |
services |
Services to perform docker-compose up. | false | |
up-flags |
Additional options to pass to docker-compose up command. |
false | |
down-flags |
Additional options to pass to docker-compose down command. |
false | |
compose-flags |
Additional options to pass to docker-compose command. |
false |
Examples
Example Using environment variables
steps:
- uses: actions/checkout@v4
- uses: hoverkraft-tech/compose-action@v1.5.1
with:
compose-file: "./docker/docker-compose.yml"
env:
CUSTOM_VARIABLE: "test"
Example using services
Perform docker-compose up to some given service instead of all of them
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"
services: |
helloworld2
helloworld3
Example using up-flags
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.
Example using down-flags
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.
Example using compose-flags
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.
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"
services: |
helloworld2
helloworld3