mirror of
https://github.com/dagger/dagger-for-github.git
synced 2026-01-01 05:00:21 +11:00
gracefully stop containers
Signed-off-by: Eli Gladman <8713153+egladman@users.noreply.github.com>
This commit is contained in:
parent
6a288cfe4d
commit
d62508b22a
1 changed files with 3 additions and 1 deletions
|
|
@ -50,6 +50,8 @@ runs:
|
|||
env:
|
||||
INPUT_MODULE: ${{ inputs.module }}
|
||||
|
||||
- run: docker stop -t 300 $(docker ps --filter name="dagger-engine-*" -q)
|
||||
- run: |
|
||||
mapfile -t containers < <(docker ps --filter name="dagger-engine-*" -q)
|
||||
docker stop -t 300 "${containers[@]}"
|
||||
shell: bash
|
||||
if: ${{ always() }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue