|
40 | 40 |
|
41 | 41 | - name: Invalidate Cloudfront Distribution |
42 | 42 | run: aws cloudfront create-invalidation --distribution-id $CF_DISTRIBUTION_ID --paths '/chaindata.json' |
| 43 | + |
| 44 | + trigger-downstream-deployments: |
| 45 | + runs-on: ubuntu-latest |
| 46 | + needs: [terraform-deploy-assets] |
| 47 | + steps: |
| 48 | + - name: Trigger API mainnet-staging deployment |
| 49 | + run: | |
| 50 | + curl -X POST \ |
| 51 | + -H "Accept: application/vnd.github.v3+json" \ |
| 52 | + -H "Authorization: token ${{ secrets.WORKFLOW_DISPATCH_PAT }}" \ |
| 53 | + https://api.github.com/repos/connext/api/actions/workflows/build-test-deploy.yml/dispatches \ |
| 54 | + -d '{"ref":"mainnet-staging"}' |
| 55 | +
|
| 56 | + - name: Trigger API mainnet-prod deployment |
| 57 | + run: | |
| 58 | + curl -X POST \ |
| 59 | + -H "Accept: application/vnd.github.v3+json" \ |
| 60 | + -H "Authorization: token ${{ secrets.WORKFLOW_DISPATCH_PAT }}" \ |
| 61 | + https://api.github.com/repos/connext/api/actions/workflows/build-test-deploy.yml/dispatches \ |
| 62 | + -d '{"ref":"mainnet-prod"}' |
| 63 | +
|
| 64 | + - name: Trigger fast-path-fill-service mainnet-staging deployment |
| 65 | + run: | |
| 66 | + curl -X POST \ |
| 67 | + -H "Accept: application/vnd.github.v3+json" \ |
| 68 | + -H "Authorization: token ${{ secrets.WORKFLOW_DISPATCH_PAT }}" \ |
| 69 | + https://api.github.com/repos/everclearorg/fast-path-fill-service/actions/workflows/build-test-deploy.yml/dispatches \ |
| 70 | + -d '{"ref":"mainnet-staging"}' |
| 71 | +
|
| 72 | + - name: Trigger fast-path-fill-service mainnet-prod deployment |
| 73 | + run: | |
| 74 | + curl -X POST \ |
| 75 | + -H "Accept: application/vnd.github.v3+json" \ |
| 76 | + -H "Authorization: token ${{ secrets.WORKFLOW_DISPATCH_PAT }}" \ |
| 77 | + https://api.github.com/repos/everclearorg/fast-path-fill-service/actions/workflows/build-test-deploy.yml/dispatches \ |
| 78 | + -d '{"ref":"mainnet-prod"}' |
0 commit comments