Skip to content

Commit 9f2f0d6

Browse files
authored
Merge pull request #341 from connext/auto-deployments
2 parents b68b9b4 + b88b315 commit 9f2f0d6

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,39 @@ jobs:
4040

4141
- name: Invalidate Cloudfront Distribution
4242
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

Comments
 (0)