-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #383 from getodk/next
Release v2023.2
- Loading branch information
Showing
31 changed files
with
439 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,23 +7,28 @@ jobs: | |
steps: | ||
- checkout | ||
|
||
- run: sudo apt install shellcheck | ||
- run: cat <(git grep -El '^#!.*sh\b') <(git ls-files | grep -E '.sh$') | sort -u | grep -v '/wait-for-it.sh$' | xargs shellcheck --exclude=SC2016 | ||
|
||
- run: git submodule update -i | ||
|
||
- run: | | ||
echo 'SSL_TYPE=selfsign | ||
DOMAIN=local | ||
[email protected]' > .env | ||
- run: docker-compose build | ||
- run: touch ./files/allow-postgres14-upgrade | ||
|
||
- run: docker compose build | ||
|
||
- run: | ||
# we allow a long retry period for the first check because the first-run | ||
# nginx setup could take several minutes due to key generation. | ||
name: Verify frontend and backend load | ||
command: | | ||
set -x | ||
docker-compose up -d | ||
CONTAINER_NAME=$(docker inspect -f '{{.Name}}' $(docker-compose ps -q nginx) | cut -c2-) | ||
docker compose up -d | ||
CONTAINER_NAME=$(docker inspect -f '{{.Name}}' $(docker compose ps -q nginx) | cut -c2-) | ||
docker run --network container:$CONTAINER_NAME \ | ||
appropriate/curl -4 --insecure --retry 30 --retry-delay 10 --retry-connrefused https://localhost/ \ | ||
| tee /dev/tty \ | ||
|
@@ -32,3 +37,4 @@ 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 pm2 list | grep -c "online" | grep -q 4 || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.