octopush/crates/gitea_raw_client/scripts/generate_client.entrypoint.sh
2022-11-27 12:16:44 +01:00

16 lines
323 B
Bash
Executable File

#!/bin/bash
set -e
echo "waiting for gitea..."
curl --silent --head --retry 5 --retry-connrefused --retry-delay 0 --max-time 10 --retry-max-time 40 "http://gitea:3000/" > /dev/null
echo "fetching swagger spec"
curl -L http://gitea:3000/swagger.v1.json > gitea.swagger.json
echo "fetched gitea.swagger.json"
exit 0