-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* First pass on dev deployment * Add deploy commands * Forgot to save the file * Adjust secret usage * Permit project overrides * Add production deployment * Add environment to production deployment * Rename production deployment pipeline * Make deployment flags uniform
- Loading branch information
1 parent
993a63e
commit 1964c74
Showing
5 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
AUTHORIZED_BROADCAST_PHONE_NUMBERS= | ||
NOTIFY_SERVICE_SID= | ||
WEBHOOK_URL= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Deploy Develop | ||
|
||
on: | ||
push: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Branch | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js 14 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
|
||
- name: Install the twilio-run Toolkit | ||
run: npm install --save-dev twilio-run | ||
|
||
- name: Deploy Application | ||
run: npm run deploy | ||
env: | ||
AUTHORIZED_BROADCAST_PHONE_NUMBERS: ${{ secrets.AUTHORIZED_BROADCAST_PHONE_NUMBERS }} | ||
NOTIFY_SERVICE_SID: ${{ secrets.NOTIFY_SERVICE_SID }} | ||
TWILIO_API_KEY: ${{ secrets.TWILIO_API_KEY }} | ||
TWILIO_API_SECRET: ${{ secrets.TWILIO_API_SECRET }} | ||
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Deploy Production | ||
|
||
on: | ||
release: | ||
types: [ created ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Branch | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js 14 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
|
||
- name: Install the twilio-run Toolkit | ||
run: npm install --save-dev twilio-run | ||
|
||
- name: Deploy Application | ||
run: npm run deploy:prod | ||
env: | ||
AUTHORIZED_BROADCAST_PHONE_NUMBERS: ${{ secrets.AUTHORIZED_BROADCAST_PHONE_NUMBERS }} | ||
NOTIFY_SERVICE_SID: ${{ secrets.NOTIFY_SERVICE_SID }} | ||
PROD_FUNCTIONS_SERVICE_SID: ${{ secrets.PROD_FUNCTIONS_SERVICE_SID }} | ||
TWILIO_API_KEY: ${{ secrets.TWILIO_API_KEY }} | ||
TWILIO_API_SECRET: ${{ secrets.TWILIO_API_SECRET }} | ||
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
{ | ||
"commands": {}, | ||
"commands": { | ||
"deploy": { | ||
"loadSystemEnv": true, | ||
"env": ".env.example" | ||
} | ||
}, | ||
"environments": {}, | ||
"projects": {}, | ||
"runtime": "node14" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters