Skip to content

Commit

Permalink
fix: add status scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
geoje committed Dec 5, 2024
1 parent 84bf23d commit c0667d2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/be-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
- server/docker/docker-compose-be.yaml
- server/docker/docker-compose-db.yaml

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

jobs:
deploy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -72,6 +76,5 @@ jobs:
|| docker stack deploy -c docker-compose-be.yaml ${REPO_NAME}
docker image prune -af
if [[ "$status" != "completed" ]]; then
exit 1
fi
docker service inspect mapletool_be --format '{{.UpdateStatus.State}}' \
| grep -qv 'completed' && exit 1
4 changes: 4 additions & 0 deletions .github/workflows/fe-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- .github/workflows/fe-cd.yaml
- server/docker/docker-compose-fe.yaml

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

jobs:
deploy:
runs-on: ubuntu-latest
Expand Down

0 comments on commit c0667d2

Please sign in to comment.