Skip to content

Commit

Permalink
Add domain name back to serverless.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aloftus23 committed Dec 11, 2024
1 parent 433e791 commit 50ce74d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,25 +120,6 @@ jobs:
restore-keys: pip-
- run: pip install -r worker/requirements.txt
- run: pytest
build_worker:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Restore npm cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Build worker container
run: npm run build-worker
working-directory: ./backend
deploy_staging:
needs: [build_worker, lint, test, test_worker, test_python]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -225,13 +206,6 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SLS_DEBUG: '*'

- name: Deploy worker
run: npm run deploy-worker-prod
working-directory: backend
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Run syncdb
run: |
aws lambda invoke --function-name crossfeed-prod-syncdb --region us-east-1 \
Expand Down
4 changes: 2 additions & 2 deletions backend/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ custom:
webpack:
webpackConfig: webpack.backend.config.js
customDomain:
domainName: ${file(env.yml):${self:provider.stage}.DOMAIN, ''}
domainName: api.crossfeed.cyber.dhs.gov
basePath: ''
certificateName: ${file(env.yml):${self:provider.stage}.DOMAIN, ''}
certificateName: api.crossfeed.cyber.dhs.gov
stage: ${self:provider.stage}
createRoute53Record: false

Expand Down

0 comments on commit 50ce74d

Please sign in to comment.