File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -19,19 +19,23 @@ jobs:
1919
2020 - name : Run Docker
2121 run : |
22- docker-compose up -d
22+ docker-compose up -d --build
23+
24+ - name : Wait run backend
25+ run : |
26+ util $(curl http://0.0.0.0:8000); do
27+ sleep 1
28+ done
2329
2430 - name : Create docs directory if it doesn't exist
2531 run : |
2632 if [ ! -d "docs" ]; then
2733 mkdir -p docs
2834 fi
2935
30- - name : Fetch page docs
36+ - name : Generate page docs
3137 run : |
32- until $(curl -o docs/openapi.json --silent --fail http://0.0.0.0:8000/api/openapi.json); do
33- sleep 1
34- done
38+ curl -o docs/openapi.json --silent --fail http://0.0.0.0:8000/api/openapi.json
3539 curl -o docs/swagger.html --silent --fail http://0.0.0.0:8000/api/docs
3640 sed 's:/api/openapi.json:openapi.json:g' docs/swagger.html > docs/index.html
3741
You can’t perform that action at this time.
0 commit comments