Skip to content

Commit

Permalink
ci: update docs build to use root and gosu
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Sep 7, 2023
1 parent fabb045 commit 953818f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ jobs:
build_openapi_json:
name: Build OpenAPI
runs-on: ubuntu-latest
container: ghcr.io/hotosm/fmtm/backend:ci-main
container:
image: ghcr.io/hotosm/fmtm/backend:ci-main
options: --user root

steps:
- name: Checkout repository
Expand All @@ -60,13 +62,14 @@ jobs:
- name: Build OpenAPi JSON
run: |
cd src/backend
python ../../scripts/gen_openapi_json.py -o ../../docs/openapi.json
gosu appuser python scripts/gen_openapi_json.py -o docs/openapi.json
publish_docs:
name: Publish Docs
runs-on: ubuntu-latest
container: ghcr.io/hotosm/fmtm/backend:ci-main
container:
image: ghcr.io/hotosm/fmtm/backend:ci-main
options: --user root
needs: [build_doxygen, build_openapi_json]

steps:
Expand All @@ -86,5 +89,4 @@ jobs:
- name: Publish
run: |
cd src/backend
mkdocs gh-deploy --config-file=../../mkdocs.yml --force
gosu appuser mkdocs gh-deploy --force

0 comments on commit 953818f

Please sign in to comment.