mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-11 23:23:06 +08:00
Add missing details
This commit is contained in:
parent
e02ec27fe7
commit
b6484cf1ad
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -10,3 +10,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
compose-file: './docker/docker-compose.yml'
|
compose-file: './docker/docker-compose.yml'
|
||||||
down-flags: '--volumes'
|
down-flags: '--volumes'
|
||||||
|
- uses: ./
|
||||||
|
with:
|
||||||
|
compose-file: './docker/docker-compose.yml'
|
||||||
|
up-one: 'helloworld'
|
||||||
|
|||||||
@ -12,6 +12,9 @@ This action runs your docker-compose file and clean up before action finished.
|
|||||||
|
|
||||||
**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](https://docs.docker.com/compose/reference/down/).
|
**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](https://docs.docker.com/compose/reference/down/).
|
||||||
|
|
||||||
|
### `up-one`
|
||||||
|
|
||||||
|
**Optional** Just perform `docker-compose up` to one service instead of all of them
|
||||||
|
|
||||||
## Example usage
|
## Example usage
|
||||||
|
|
||||||
@ -21,6 +24,6 @@ steps:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: isbang/compose-action@v1.0.0
|
- uses: isbang/compose-action@v1.0.0
|
||||||
with:
|
with:
|
||||||
compose-file: './docker/docker-compose.yml'
|
compose-file: "./docker/docker-compose.yml"
|
||||||
down-flags: '--volumes'
|
down-flags: "--volumes"
|
||||||
```
|
```
|
||||||
|
|||||||
@ -9,6 +9,10 @@ inputs:
|
|||||||
description: 'additional options to pass to `docker-compose down` command'
|
description: 'additional options to pass to `docker-compose down` command'
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
|
down-flags: # id of input
|
||||||
|
description: 'service to perform docker-compose up'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node12'
|
||||||
main: 'main.js'
|
main: 'main.js'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user