From 6a7f5ea5b043d35a8fc1f8514376e9716acc2d75 Mon Sep 17 00:00:00 2001 From: Mojo Talantikite Date: Wed, 22 Jan 2025 15:50:41 -0500 Subject: [PATCH] inject license --- .github/workflows/deploy-infra-to-env.yml | 4 ++++ .github/workflows/deploy.yml | 3 ++- services/app-api/package.json | 2 +- services/app-api/serverless.yml | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-infra-to-env.yml b/.github/workflows/deploy-infra-to-env.yml index fec987b311..638ed5f1bc 100644 --- a/.github/workflows/deploy-infra-to-env.yml +++ b/.github/workflows/deploy-infra-to-env.yml @@ -22,6 +22,8 @@ on: required: true nr_license_key: required: true + serverless_license_key: + required: true permissions: id-token: write @@ -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 }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f1c9b42a24..7e8d137c34 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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}} @@ -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: diff --git a/services/app-api/package.json b/services/app-api/package.json index 5ae2bc916b..3ca69ea353 100644 --- a/services/app-api/package.json +++ b/services/app-api/package.json @@ -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", diff --git a/services/app-api/serverless.yml b/services/app-api/serverless.yml index 5f35009f78..d95b34bc13 100644 --- a/services/app-api/serverless.yml +++ b/services/app-api/serverless.yml @@ -1,6 +1,6 @@ service: app-api -frameworkVersion: '^3.19.0' +frameworkVersion: '^4.0.0' package: individually: true