diff options
author | earl-warren <earl-warren@noreply.code.forgejo.org> | 2024-11-16 11:08:30 +0100 |
---|---|---|
committer | earl-warren <earl-warren@noreply.code.forgejo.org> | 2024-11-16 11:08:30 +0100 |
commit | 5d01a328cbfb9fd0c4a831427ff0232d10cdcbe6 (patch) | |
tree | ddeab6dd1ee12358679278a7a841d60dcc94548d | |
parent | Merge pull request 'fix: make container.docker_host default to - (part two)' ... (diff) | |
parent | chore(ci): wait for the Forgejo instance to start (diff) | |
download | forgejo-runner-5d01a328cbfb9fd0c4a831427ff0232d10cdcbe6.tar.xz forgejo-runner-5d01a328cbfb9fd0c4a831427ff0232d10cdcbe6.zip |
Merge pull request 'chore(ci): wait for the Forgejo instance to start' (#334) from earl-warren/runner:wip-test-delay into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/334
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
-rw-r--r-- | .forgejo/workflows/test.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 42dd972..2b0a019 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -22,7 +22,7 @@ jobs: services: forgejo: - image: codeberg.org/forgejo/forgejo:1.21 + image: codeberg.org/forgejo/forgejo:9 env: FORGEJO__security__INSTALL_LOCK: "true" FORGEJO__log__LEVEL: "debug" @@ -55,7 +55,9 @@ jobs: run: | apt-get update -qq apt-get install -y -qq jq curl retry - retry --delay=1 --times=60 bash -c 'test $FORGEJO_ADMIN_USER = $(curl -sS http://$FORGEJO_ADMIN_USER:$FORGEJO_ADMIN_PASSWORD@$FORGEJO_HOST_PORT/api/v1/user | jq --raw-output .login)' + sleep 10 # matches the sleep 10 in the bootstrap of the Forgejo instance + # in case of a slow machine, give it time to bootstrap + retry --delay=10 --times=6 bash -c 'test $FORGEJO_ADMIN_USER = $(curl -sS http://$FORGEJO_ADMIN_USER:$FORGEJO_ADMIN_PASSWORD@$FORGEJO_HOST_PORT/api/v1/user | jq --raw-output .login)' - run: make FORGEJO_URL=http://$FORGEJO_HOST_PORT test |