smartlyio/docker-compose-action
Run docker-compose and enforce cleanup after the job finished
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| composeFile | The path to the docker-compose file to use, realtive to the workspace. | no | docker-compose.yml |
| serviceName | The name of the service to use defined in the compose file. If not given, will run all services. | no | "" |
| composeCommand | One of `up` or `run` as the main compose command to execute. | no | up |
| composeArguments | Option flags passed to the compose command. | no | --abort-on-container-exit |
| runCommand | Command to run in the container when composeCommand is 'run'; ignored otherwise. | no | "" |
| build | Explicitly build the service image before running. Implies pull before build. | no | false |
| push | When to push the built image to the registry. 'on:push' means when the trigger event it a push to the branch. Otherwise true/false. Only runs if 'build' is true. | no | on:push |
| build-args | Build arguments to pass to docker-compose build, as a newline separated list. Requires "build" option to be set when used. Values may not contain commas, as a naive string split is used to parse them. e.g: build-args: | ARG1=value ARG2=other | no | — |
| registry-cache | Domain name of a proxying cache to dockerhub | no | hub.artifactor.ee |
Outputs
| name | description |
|---|---|
| container_id | The docker ID of the service container run. |