From fad9539bd30ca066d58eafa25837e4e4e6547246 Mon Sep 17 00:00:00 2001 From: Martin Dimitrov Date: Sun, 8 Jun 2025 19:38:23 -0700 Subject: [PATCH] fix promotion by adding the SID in the config --- .gitea/workflows/deploy-twilio.yaml | 4 ++-- packages/doorman-api/.twilioserverlessrc | 5 +++-- packages/doorman-client/.twilioserverlessrc | 5 +++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy-twilio.yaml b/.gitea/workflows/deploy-twilio.yaml index f728841..92b98ea 100644 --- a/.gitea/workflows/deploy-twilio.yaml +++ b/.gitea/workflows/deploy-twilio.yaml @@ -47,13 +47,13 @@ jobs: - name: run staging integration test run: bun integ-test:staging - - name: Deploy Doorman UI and API + - name: Promote Doorman UI and API staging to prod run: bun run deploy-serverless env: ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }} AUTH_TOKEN: ${{ secrets.TWILIO_AUTH_TOKEN }} - - name: Deploy Doorman Buzzer Client + - name: Promote Doorman Buzzer Client staging to prod run: bun run deploy-buzzer-client env: ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }} diff --git a/packages/doorman-api/.twilioserverlessrc b/packages/doorman-api/.twilioserverlessrc index 0a476e7..80f648f 100644 --- a/packages/doorman-api/.twilioserverlessrc +++ b/packages/doorman-api/.twilioserverlessrc @@ -3,6 +3,9 @@ "environments": {}, "projects": {}, "functionsFolder": "./build/functions", + "serviceSid": "ZS90954ff78d193d18a61ad84bde392b0d", + "runtime": "node22" + // "assets": true /* Upload assets. Can be turned off with --no-assets */, // "assetsFolder": null /* Specific folder name to be used for static assets */, // "buildSid": null /* An existing Build SID to deploy to the new environment */, @@ -34,9 +37,7 @@ // "production": false /* Promote build to the production environment (no domain suffix). Overrides environment flag */, // "properties": null /* Specify the output properties you want to see. Works best on single types */, // "region": null /* Twilio API Region */, - "runtime": "node22" /* The version of Node.js to deploy the build to. (node18) */, // "serviceName": null /* Overrides the name of the Serverless project. Default: the name field in your package.json */, - // "serviceSid": null /* SID of the Twilio Serverless Service to deploy to */, // "sourceEnvironment": null /* SID or suffix of an existing environment you want to deploy from. */, // "tail": false /* Continuously stream the logs */, // "template": null /* undefined */, diff --git a/packages/doorman-client/.twilioserverlessrc b/packages/doorman-client/.twilioserverlessrc index 0a476e7..6a0e511 100644 --- a/packages/doorman-client/.twilioserverlessrc +++ b/packages/doorman-client/.twilioserverlessrc @@ -3,6 +3,9 @@ "environments": {}, "projects": {}, "functionsFolder": "./build/functions", + "serviceSid": "ZS330186eb417a167e6ce918aefcbcc9ae", + "runtime": "node22" + // "assets": true /* Upload assets. Can be turned off with --no-assets */, // "assetsFolder": null /* Specific folder name to be used for static assets */, // "buildSid": null /* An existing Build SID to deploy to the new environment */, @@ -34,9 +37,7 @@ // "production": false /* Promote build to the production environment (no domain suffix). Overrides environment flag */, // "properties": null /* Specify the output properties you want to see. Works best on single types */, // "region": null /* Twilio API Region */, - "runtime": "node22" /* The version of Node.js to deploy the build to. (node18) */, // "serviceName": null /* Overrides the name of the Serverless project. Default: the name field in your package.json */, - // "serviceSid": null /* SID of the Twilio Serverless Service to deploy to */, // "sourceEnvironment": null /* SID or suffix of an existing environment you want to deploy from. */, // "tail": false /* Continuously stream the logs */, // "template": null /* undefined */,