forked from passportxyz/passport
-
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.
Merge pull request passportxyz#476 from gitcoinco/gh-action-ceramic
feat(infra): gh action for deploying ceramic to production
- Loading branch information
Showing
2 changed files
with
46 additions
and
4 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,40 @@ | ||
name: Deploy Ceramic Mainnet Node | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
commit: | ||
description: "Commit ref" | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
deploy-production: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
cache: "yarn" | ||
cache-dependency-path: infra/ceramic-mainnet/package-lock.json | ||
# Update the pulumi stack with new image | ||
- run: | | ||
npm install | ||
pulumi stack select -c gitcoin/ceramic/mainnet-node | ||
pulumi config -s gitcoin/ceramic/mainnet-node set aws:region us-east-1 --non-interactive | ||
working-directory: infra/ceramic-mainnet | ||
env: | ||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | ||
- uses: pulumi/actions@v3 | ||
id: pulumi | ||
with: | ||
command: up | ||
stack-name: gitcoin/ceramic/mainnet-node | ||
|
||
upsert: false | ||
work-dir: infra/ceramic-mainnet | ||
env: | ||
ROUTE_53_ZONE: ${{ secrets.ROUTE53_ZONE_ID_PRODUCTION }} | ||
DOMAIN: ${{ secrets.DOMAIN }} | ||
RPC_URL: ${{ MAINNET_RPC_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