WIP: wip-entrypoint #2
1 changed files with 5 additions and 8 deletions
|
@ -39,11 +39,8 @@ jobs:
|
||||||
# Launch Forgejo & the runner
|
# Launch Forgejo & the runner
|
||||||
#
|
#
|
||||||
$cli up -d
|
$cli up -d
|
||||||
for delay in $(seq 60) ; do
|
for delay in $(seq 60) ; do test -f /srv/runner-data/.runner && break ; sleep 30 ; done
|
||||||
test -f ./forgejo-runner/runner.json && break
|
test -f /srv/runner-data/.runner
|
||||||
sleep 30
|
|
||||||
done
|
|
||||||
test -f ./forgejo-runner/runner.json
|
|
||||||
#
|
#
|
||||||
# Run the demo workflow
|
# Run the demo workflow
|
||||||
#
|
#
|
||||||
|
@ -59,15 +56,15 @@ jobs:
|
||||||
grep --quiet "$success" /tmp/out && break
|
grep --quiet "$success" /tmp/out && break
|
||||||
grep --quiet "$failure" /tmp/out && break
|
grep --quiet "$failure" /tmp/out && break
|
||||||
$cli ps --all
|
$cli ps --all
|
||||||
$cli logs --tail=20 forgejo-runner demo-workflow
|
$cli logs --tail=20 runner-daemon demo-workflow
|
||||||
sleep 30
|
sleep 30
|
||||||
done
|
done
|
||||||
grep --quiet "$success" /tmp/out
|
grep --quiet "$success" /tmp/out
|
||||||
$cli logs forgejo-runner > /tmp/runner.log
|
$cli logs runner-daemon > /tmp/runner.log
|
||||||
grep --quiet 'Start image=code.forgejo.org/oci/node:20-bookworm' /tmp/runner.log
|
grep --quiet 'Start image=code.forgejo.org/oci/node:20-bookworm' /tmp/runner.log
|
||||||
|
|
||||||
- name: full docker compose logs
|
- name: full docker compose logs
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
cd examples/docker-compose
|
cd examples/docker-compose
|
||||||
docker compose -f compose-forgejo-and-runner.yml -f compose-demo-workflow.yml logs
|
docker compose -f compose-forgejo-and-runner.yml -f compose-demo-workflow.yml logs
|
Loading…
Reference in a new issue