Skip to content

Commit

Permalink
test redoc url
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin PILIA committed Dec 16, 2024
1 parent 9ddb502 commit de4ae10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- test_redoc_url

env:
IMAGE_NAME: ghcr.io/${{ github.repository }}/eg1
Expand Down Expand Up @@ -51,6 +52,7 @@ jobs:
name: Deploy from ${{ github.ref_name }}/${{ github.sha }}
runs-on: ubuntu-latest
needs: build-and-push
if: github.ref_name == 'test_redoc_url'
steps:
- name: Trigger dev deployment
run: |
Expand Down
6 changes: 3 additions & 3 deletions api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
description=APP_DESCRIPTION,
version=APP_VERSION,
contact=CONTACT,
docs_url=API_PREFIX + "/docs",
redoc_url=API_PREFIX + "/redoc",
openapi_url=API_PREFIX + "/openapi.json",
docs_url="/docs",
redoc_url="/redoc",
openapi_url="/openapi.json",
)

app.add_middleware(
Expand Down

0 comments on commit de4ae10

Please sign in to comment.