Skip to content

Commit

Permalink
fix: docker inspect checking
Browse files Browse the repository at this point in the history
  • Loading branch information
geoje committed Dec 5, 2024
1 parent 593bc26 commit 7db98eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/be-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/fe-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7db98eb

Please sign in to comment.