-
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.
- Loading branch information
Showing
5 changed files
with
111 additions
and
14 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,39 @@ | ||
name: Deploy | ||
|
||
inputs: | ||
AWS_ACCESS_KEY_ID: | ||
required: true | ||
AWS_SECRET_ACCESS_KEY: | ||
required: true | ||
AWS_REGION: | ||
required: true | ||
AWS_LAMBDA_FUNCTION_NAME: | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install AWS Cli | ||
uses: unfor19/install-aws-cli-action@v1 | ||
with: | ||
arch: amd64 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install jq | ||
shell: bash | ||
run: | | ||
npm run package | ||
- name: Upload lambda code | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ inputs.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ inputs.AWS_SECRET_ACCESS_KEY }} | ||
AWS_REGION: ${{ inputs.AWS_REGION }} | ||
shell: bash | ||
run: | | ||
aws lambda update-function-code \ | ||
--function-name ${{ inputs.AWS_LAMBDA_FUNCTION_NAME }} \ | ||
--zip-file fileb://my_deployment_package.zip |
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,19 @@ | ||
name: Deploy Dor AWS | ||
|
||
on: | ||
push: | ||
branches: | ||
- "deploy/dor-aws" | ||
jobs: | ||
deploy-dor-aws: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Deploy DOR AWS | ||
uses: "./.github/templates/deploy" | ||
with: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_DOR }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_DOR }} | ||
AWS_REGION: ${{ secrets.AWS_REGION_DOR}} | ||
AWS_LAMBDA_FUNCTION_NAME: MetagraphMonitor |
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,19 @@ | ||
name: Deploy Lattice AWS | ||
|
||
on: | ||
push: | ||
branches: | ||
- "deploy/lattice-aws" | ||
jobs: | ||
deploy-lattice-aws: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Deploy Lattice AWS | ||
uses: "./.github/templates/deploy" | ||
with: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_LATTICE }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_LATTICE }} | ||
AWS_REGION: ${{ secrets.AWS_REGION_LATTICE}} | ||
AWS_LAMBDA_FUNCTION_NAME: DORMetagraphMonitor |
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,19 @@ | ||
name: Deploy Testnet/Integrationnet AWS | ||
|
||
on: | ||
push: | ||
branches: | ||
- "deploy/testnet-integrationnet-aws" | ||
jobs: | ||
deploy-testnet-integrationnet-aws: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Deploy Testnet/Integrationnet AWS | ||
uses: "./.github/templates/deploy" | ||
with: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_TESTNET_INTEGRATIONNET }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_TESTNET_INTEGRATIONNET }} | ||
AWS_REGION: ${{ secrets.AWS_REGION_TESTNET_INTEGRATIONNET }} | ||
AWS_LAMBDA_FUNCTION_NAME: MetagraphMonitor |
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