From 74ebae112831eac8ccee2b0fc8e1fa0470300681 Mon Sep 17 00:00:00 2001 From: Marcin Bator Date: Wed, 4 Dec 2024 20:12:49 +0100 Subject: [PATCH] fix: #dev-deploy backend containers env name --- .github/workflows/dev.kodemy.deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev.kodemy.deploy.yml b/.github/workflows/dev.kodemy.deploy.yml index 6f93df1..f1de153 100644 --- a/.github/workflows/dev.kodemy.deploy.yml +++ b/.github/workflows/dev.kodemy.deploy.yml @@ -177,7 +177,7 @@ jobs: cd $WORKING_DIRECTORY docker compose -f docker-compose.app.yml -f docker-compose.app.expose.yml up --build -d - export CONTAINERS=$(docker-compose -f docker-compose.app.yml ps -q) + export BACKEND_CONTAINERS=$(docker-compose -f docker-compose.app.yml ps -q) - name: Validate running uses: appleboy/ssh-action@master @@ -203,7 +203,7 @@ jobs: echo "Waiting 1 minute..." sleep 1m - for container in $CONTAINERS; do + for container in $BACKEND_CONTAINERS; do status=$(docker inspect --format='{{.State.Status}}' $container) if [ "$status" != "running" ]; then echo "$container not running"