Skip to content
Open
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
14 changes: 14 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,20 @@ jobs:
cd ../..
docker compose --env-file $ENVFILE -p dspace-$INSTANCE -f docker/docker-compose.yml -f docker/docker-compose-rest.yml -f $CONFIG_PATH/docker-compose-rest.yml -f $CONFIG_PATH/docker-compose.yml -f $CONFIG_PATH/extra.yml up -d --no-build --remove-orphans

# docker compose returns as soon as the containers start, long before DSpace answers.
# Without this wait the UI tests that follow start too early and their first specs fail.
- name: wait until the instance answers
timeout-minutes: 15
run: |
BASE_URL="http://${{ inputs.DEV_MACHINE }}.pc:$INSTANCE/repository"
for url in "$BASE_URL/server/api" "$BASE_URL/"; do
echo "Waiting for $url"
until [ "$(curl -sL -o /dev/null -w '%{http_code}' --max-time 30 "$url")" = "200" ]; do
sleep 10
done
echo "$url -> 200"
done

import-8633:
runs-on: dspace-${{inputs.DEV_MACHINE}}-dep-1
if: inputs.IMPORT
Expand Down
Loading