Skip to content

Commit

Permalink
inject license
Browse files Browse the repository at this point in the history
  • Loading branch information
mojotalantikite committed Jan 22, 2025
1 parent 0fbda72 commit 6a7f5ea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy-infra-to-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ on:
required: true
nr_license_key:
required: true
serverless_license_key:
required: true

permissions:
id-token: write
Expand Down Expand Up @@ -123,6 +125,8 @@ jobs:

- name: deploy ui
id: deploy-ui
env:
SERVERLESS_ACCESS_KEY: ${{ secrets.serverless_license_key }}
run: |
pushd services/ui && npx serverless deploy --stage ${{ inputs.stage_name }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ jobs:

deploy-infra:
needs: [begin-deployment, build-clamav-layer]
uses: Enterprise-CMCS/managed-care-review/.github/workflows/deploy-infra-to-env.yml@main
uses: Enterprise-CMCS/managed-care-review/.github/workflows/deploy-infra-to-env.yml@mt-serverless-v4
with:
environment: dev
stage_name: ${{ needs.begin-deployment.outputs.stage-name}}
Expand All @@ -282,6 +282,7 @@ jobs:
aws_account_id: ${{ secrets.DEV_AWS_ACCOUNT_ID }}
nr_license_key: ${{ secrets.NR_LICENSE_KEY }}
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK }}
serverless_license_key: ${{ secrets.SERVERLESS_V4_LICENSE }}

deploy-app:
needs:
Expand Down
2 changes: 1 addition & 1 deletion services/app-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"jest": "^29.7.0",
"lint-staged": "^15.2.7",
"prettier": "^3.4.2",
"serverless": "^3.39.0",
"serverless": "^4.0.0",
"serverless-associate-waf": "^1.2.1",
"serverless-esbuild": "^1.52.1",
"serverless-iam-helper": "https://github.com/CMSgov/serverless-iam-helper",
Expand Down
2 changes: 1 addition & 1 deletion services/app-api/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
service: app-api

frameworkVersion: '^3.19.0'
frameworkVersion: '^4.0.0'

package:
individually: true
Expand Down

0 comments on commit 6a7f5ea

Please sign in to comment.