feat: Promote Compose v2

This commit is contained in:
Maxime Hélias
2022-07-28 19:01:17 +02:00
committed by Maxime Helias
parent daef1cb0d5
commit 6a941f244d
9 changed files with 24 additions and 24 deletions

View File

@@ -12,12 +12,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Pull images
run: docker-compose pull
run: docker compose pull
- name: Start services
run: docker-compose up --build -d
run: docker compose up --build -d
- name: Wait for services
run: |
while status="$(docker inspect --format="{{if .Config.Healthcheck}}{{print .State.Health.Status}}{{end}}" "$(docker-compose ps -q php)")"; do
while status="$(docker inspect --format="{{if .Config.Healthcheck}}{{print .State.Health.Status}}{{end}}" "$(docker compose ps -q php)")"; do
case $status in
starting) sleep 1;;
healthy) exit 0;;