mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-18 10:51:28 +00:00
wait
This commit is contained in:
parent
8f4fef5404
commit
fe229d5286
14
.github/workflows/cache-verify.yml
vendored
14
.github/workflows/cache-verify.yml
vendored
@ -237,7 +237,7 @@ jobs:
|
||||
run: |
|
||||
docker compose -f docker-compose.yml -f docker-compose.test.yml up --detach backend mailserver webapp
|
||||
|
||||
- name: Wait for essential services
|
||||
- name: Wait for essential services (from .env)
|
||||
run: |
|
||||
wait_for() {
|
||||
local name="$1"
|
||||
@ -256,9 +256,15 @@ jobs:
|
||||
return 1
|
||||
}
|
||||
|
||||
# Check each essential service
|
||||
wait_for "webapp" "http://localhost:3000"
|
||||
wait_for "backend" "http://localhost:4000/"
|
||||
# Lade die kopierten .env-Dateien in Shell-Variablen
|
||||
set -o allexport
|
||||
source backend/.env
|
||||
source webapp/.env
|
||||
set +o allexport
|
||||
|
||||
# Verwende die URIs aus .env
|
||||
wait_for "webapp" "$CLIENT_URI"
|
||||
wait_for "backend" "$GRAPHQL_URI"
|
||||
wait_for "mailserver" "http://localhost:1080"
|
||||
wait_for "minio" "http://localhost:9000/minio/health/live"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user