Skip to content

Commit

Permalink
add crust pinning to deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
samepant committed Apr 19, 2022
1 parent 6259feb commit 79c24ca
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/dev-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,18 @@ jobs:
uses: anantaramdas/ipfs-pinata-deploy-action@39bbda1ce1fe24c69c6f57861b8038278d53688d
with:
pin-name: Zodiac Safe App - Latest — ${ GITHUB_SHA }
path: './build'
path: "./build"
pinata-api-key: ${{ secrets.PINATA_API_KEY }}
pinata-secret-api-key: ${{ secrets.PINATA_API_SECRET_KEY }}

- name: Pin to Crust
uses: crustio/[email protected]
continue-on-error: true
timeout-minutes: 2
with:
cid: ${{ steps.upload.outputs.hash }}
seeds: ${{ secrets.CRUST_SEEDS }}

- name: Convert CIDv0 to CIDv1
id: convert_cidv0
uses: uniswap/[email protected]
Expand All @@ -38,8 +46,8 @@ jobs:
- name: Update DNS with new IPFS hash
env:
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
RECORD_DOMAIN: 'gnosisguild.org'
RECORD_NAME: '_dnslink.zodiac.dev'
RECORD_DOMAIN: "gnosisguild.org"
RECORD_NAME: "_dnslink.zodiac.dev"
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
uses: textileio/cloudflare-update-dnslink@0fe7b7a1ffc865db3a4da9773f0f987447ad5848
with:
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/prod-release-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Prod Release Deployment
on:
release:
types: created

env:
REACT_APP_ETHERSCAN_KEY: ${{ secrets.REACT_APP_ETHERSCAN_KEY }}
REACT_APP_INFURA_ID: ${{ secrets.REACT_APP_INFURA_ID }}
Expand All @@ -25,10 +25,18 @@ jobs:
uses: anantaramdas/ipfs-pinata-deploy-action@39bbda1ce1fe24c69c6f57861b8038278d53688d
with:
pin-name: Zodiac Safe App - Prod — ${ GITHUB_SHA }
path: './build'
path: "./build"
pinata-api-key: ${{ secrets.PINATA_API_KEY }}
pinata-secret-api-key: ${{ secrets.PINATA_API_SECRET_KEY }}

- name: Pin to Crust
uses: crustio/[email protected]
continue-on-error: true
timeout-minutes: 2
with:
cid: ${{ steps.upload.outputs.hash }}
seeds: ${{ secrets.CRUST_SEEDS }}

- name: Convert CIDv0 to CIDv1
id: convert_cidv0
uses: uniswap/[email protected]
Expand All @@ -38,8 +46,8 @@ jobs:
- name: Update DNS with new IPFS hash
env:
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
RECORD_DOMAIN: 'gnosisguild.org'
RECORD_NAME: '_dnslink.zodiac'
RECORD_DOMAIN: "gnosisguild.org"
RECORD_NAME: "_dnslink.zodiac"
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
uses: textileio/cloudflare-update-dnslink@0fe7b7a1ffc865db3a4da9773f0f987447ad5848
with:
Expand All @@ -60,4 +68,4 @@ jobs:
IPFS gateways:
- https://${{ steps.convert_cidv0.outputs.cidv1 }}.ipfs.dweb.link/
- https://${{ steps.convert_cidv0.outputs.cidv1 }}.ipfs.cf-ipfs.com/
- https://${{ steps.convert_cidv0.outputs.cidv1 }}.ipfs.cf-ipfs.com/

0 comments on commit 79c24ca

Please sign in to comment.