Il Sub Bang (ethan) 9ea84e60c1
fix: broken action (#6)
* fix: broken action test

* fix: run npm install

* fix: add missing node_modules

* fix: invalid option creating

* fix: add missing composeFile parameter

* fix: change test order

* WIP: add debug code

* WIP: fix main.js

* WIP: fix action

* WIP: debug

* WIP: debug

* fix: remove double quote
2022-06-08 00:02:09 +09:00
2022-06-08 00:02:09 +09:00
2022-06-03 12:06:13 -05:00
2022-06-08 00:02:09 +09:00
2022-06-03 12:06:13 -05:00
2022-06-08 00:02:09 +09:00
2022-06-08 00:02:09 +09:00
2022-06-03 11:52:31 -05:00
2022-06-08 00:02:09 +09:00
2022-06-03 12:06:13 -05:00
2022-06-08 00:02:09 +09: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".

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.

Example usage

steps:
  # need checkout before using compose-action
  - uses: actions/checkout@v2
  - uses: isbang/compose-action@v1.0.0
    with:
      compose-file: "./docker/docker-compose.yml"
      down-flags: "--volumes"
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%