Skip to content

Commit

Permalink
fix: check completed with grep
Browse files Browse the repository at this point in the history
  • Loading branch information
geoje committed Dec 5, 2024
1 parent 7db98eb commit d7931dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/be-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- server/docker/docker-compose-db.yaml

concurrency:
group: be
group: $ {{ github.workflow }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -76,5 +76,5 @@ jobs:
|| docker stack deploy -c docker-compose-be.yaml ${REPO_NAME}
docker image prune -af
docker service inspect ${REPO_NAME}_be --format '{{.UpdateStatus.State}}' \
| grep -qv 'completed' && exit 1
docker service inspect ${REPO_NAME}_be --format {{.UpdateStatus.State}} \
| grep -q completed
7 changes: 3 additions & 4 deletions .github/workflows/fe-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- server/docker/docker-compose-fe.yaml

concurrency:
group: fe
group: $ {{ github.workflow }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -62,7 +62,6 @@ 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 ${REPO_NAME}_fe --format '{{.UpdateStatus.State}}' \
| grep -qv 'completed' && exit 1
docker service inspect ${REPO_NAME}_fe --format {{.UpdateStatus.State}} \
| grep -q completed

0 comments on commit d7931dc

Please sign in to comment.