From b6484cf1adc32eb9dd35468b641aed207394ba9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20J=20Gonz=C3=A1lez=20C?= <26823011+ricglz@users.noreply.github.com> Date: Wed, 1 Jun 2022 19:33:54 -0500 Subject: [PATCH] Add missing details --- .github/workflows/main.yml | 4 ++++ README.md | 7 +++++-- action.yml | 4 ++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2458839..d8b116f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,3 +10,7 @@ jobs: with: compose-file: './docker/docker-compose.yml' down-flags: '--volumes' + - uses: ./ + with: + compose-file: './docker/docker-compose.yml' + up-one: 'helloworld' diff --git a/README.md b/README.md index 6570b00..2808784 100644 --- a/README.md +++ b/README.md @@ -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/). +### `up-one` + +**Optional** Just perform `docker-compose up` to one service instead of all of them ## Example usage @@ -21,6 +24,6 @@ steps: - uses: actions/checkout@v2 - uses: isbang/compose-action@v1.0.0 with: - compose-file: './docker/docker-compose.yml' - down-flags: '--volumes' + compose-file: "./docker/docker-compose.yml" + down-flags: "--volumes" ``` diff --git a/action.yml b/action.yml index 86209d1..4dd2527 100644 --- a/action.yml +++ b/action.yml @@ -9,6 +9,10 @@ inputs: description: 'additional options to pass to `docker-compose down` command' required: false default: '' + down-flags: # id of input + description: 'service to perform docker-compose up' + required: false + default: '' runs: using: 'node12' main: 'main.js'