Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
build:
machine:
image: ubuntu-2004:202201-02
image: ubuntu-2004:current

steps:
- checkout
Expand Down Expand Up @@ -37,4 +37,9 @@ jobs:
appropriate/curl -4 --insecure --retry 20 --retry-delay 2 --retry-connrefused https://localhost/v1/projects \
| tee /dev/tty \
| grep -q '\[\]'
docker compose exec -T service npx pm2 list | grep -c "online" | grep -q 4 || exit 1
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed exit 1, because if grep -q 4 doesn't find 4, it should already return with an exit status of 1. That alone will cause the command to exit, since CircleCI runs bash with -e (docs). The other uses of grep above don't use exit.

- run:
name: Verify pm2
command: |
docker compose exec -T service npx pm2 list \
| tee /dev/tty \
| grep -c "online" | grep -q 4