From 7db98eb59cbfca99a82e1e984da84cab726fc301 Mon Sep 17 00:00:00 2001 From: Gyeongho Yang Date: Thu, 5 Dec 2024 15:24:00 +0900 Subject: [PATCH] fix: docker inspect checking --- .github/workflows/be-cd.yaml | 2 +- .github/workflows/fe-cd.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/be-cd.yaml b/.github/workflows/be-cd.yaml index 0c3a1e1..e184f84 100644 --- a/.github/workflows/be-cd.yaml +++ b/.github/workflows/be-cd.yaml @@ -76,5 +76,5 @@ jobs: || docker stack deploy -c docker-compose-be.yaml ${REPO_NAME} docker image prune -af - docker service inspect mapletool_be --format '{{.UpdateStatus.State}}' \ + docker service inspect ${REPO_NAME}_be --format '{{.UpdateStatus.State}}' \ | grep -qv 'completed' && exit 1 diff --git a/.github/workflows/fe-cd.yaml b/.github/workflows/fe-cd.yaml index 6920639..4e54f17 100644 --- a/.github/workflows/fe-cd.yaml +++ b/.github/workflows/fe-cd.yaml @@ -62,7 +62,7 @@ jobs: && docker service update --force ${REPO_NAME}_fe \ || docker stack deploy -c docker-compose-fe.yaml ${REPO_NAME} + docker service inspect ${REPO_NAME}_fe docker image prune -af - docker service inspect mapletool_fe --format '{{.UpdateStatus.State}}' - docker service inspect mapletool_fe --format '{{.UpdateStatus.State}}' \ + docker service inspect ${REPO_NAME}_fe --format '{{.UpdateStatus.State}}' \ | grep -qv 'completed' && exit 1