Wait for authentik to start in ci test

This commit is contained in:
Jamie Curnow 2024-11-13 08:51:24 +10:00
parent 03b3b6379b
commit 331c761a1c
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E

View File

@ -77,6 +77,11 @@ docker-compose up -d --remove-orphans --pull=never fullstack
# wait for main container to be healthy # wait for main container to be healthy
bash "$DIR/../wait-healthy" "$(docker-compose ps --all -q fullstack)" 120 bash "$DIR/../wait-healthy" "$(docker-compose ps --all -q fullstack)" 120
# Wait for authentik to be healthy, if it exists as a compose service
if [ "$(docker-compose ps --all -q authentik)" != "" ]; then
bash "$DIR/../wait-healthy" "$(docker-compose ps --all -q authentik)" 90
fi
# Run tests # Run tests
rm -rf "$DIR/../../test/results" rm -rf "$DIR/../../test/results"
docker-compose up --build cypress docker-compose up --build cypress