mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
deploying api with api domain
This commit is contained in:
parent
c7a765c193
commit
043d390977
2 changed files with 9 additions and 0 deletions
2
.github/workflows/deploy_fastapi_backend.yml
vendored
2
.github/workflows/deploy_fastapi_backend.yml
vendored
|
|
@ -21,6 +21,7 @@ jobs:
|
|||
run: |
|
||||
npm install -g serverless
|
||||
npm install -g serverless-python-requirements
|
||||
npm install -g serverless-domain-manager
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
|
|
@ -50,4 +51,5 @@ jobs:
|
|||
SECRET_KEY: ${{ secrets.NEXTAUTH_SECRET }}
|
||||
ALGORITHM: 'HS256'
|
||||
PLAN_TRIGGER_BUCKET: 'retrofit-plan-inputs-${{ github.ref_name }}'
|
||||
DOMAIN_NAME: ${{ secrets.DOMAIN_NAME }}
|
||||
run: cd backend && sls deploy --stage ${{ github.ref_name }} --verbose
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ provider:
|
|||
SECRET_KEY: ${env:SECRET_KEY}
|
||||
ALGORITHM: ${env:ALGORITHM}
|
||||
PLAN_TRIGGER_BUCKET: ${env:PLAN_TRIGGER_BUCKET}
|
||||
DOMAIN_NAME: ${env:DOMAIN_NAME}
|
||||
|
||||
package:
|
||||
individually: true
|
||||
|
|
@ -18,6 +19,7 @@ package:
|
|||
|
||||
plugins:
|
||||
- serverless-python-requirements
|
||||
- serverless-domain-manager
|
||||
|
||||
custom:
|
||||
pythonRequirements:
|
||||
|
|
@ -26,6 +28,11 @@ custom:
|
|||
useDocker: true
|
||||
dockerSsh: true
|
||||
fileName: requirements/base.txt
|
||||
customDomain:
|
||||
domainName: api-${self:provider.stage}.${self:provider.environment.DOMAIN_NAME}
|
||||
stage: ${self:provider.stage}
|
||||
createRoute53Record: true
|
||||
certificateArn: ${ssm:/ssl_certificate_arn~true}
|
||||
|
||||
functions:
|
||||
app:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue