Skip to content

Commit

Permalink
ci(github actions): add a github action for deploying ceramic (testne…
Browse files Browse the repository at this point in the history
…t) node to staging
  • Loading branch information
shavinac committed May 25, 2022
1 parent e46d670 commit b6ac8e0
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy-ceramic-testnet-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy Ceramic Testnet Node

on:
workflow_dispatch:

jobs:
deploy-ceramic-testnet:
needs: build-and-test
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-testnet/package-lock.json
# Update the pulumi stack with new image
- run: |
npm install
pulumi stack select -c gitcoin/ceramic/testnet-node
pulumi config -s gitcoin/dpopp/testnet-node set aws:region us-east-1 --non-interactive
working-directory: infra/ceramic-testnet
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
- uses: pulumi/actions@v3
id: pulumi
with:
command: up
stack-name: gitcoin/ceramic/testnet-node
upsert: false
work-dir: infra/ceramic-testnet
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_STAGING }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_STAGING }}
ROUTE_53_ZONE: ${{ secrets.ROUTE53_ZONE_ID_STAGING }}
DOMAIN: ${{ secrets.DOMAIN }}

0 comments on commit b6ac8e0

Please sign in to comment.