Skip to content

Commit 260737c

Browse files
authored
Merge pull request #362 from connext/deployment-trigger
added new flow for deployment trigger
2 parents 42956b4 + 96fbcc3 commit 260737c

File tree

1 file changed

+4
-28
lines changed

1 file changed

+4
-28
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -41,38 +41,14 @@ jobs:
4141
- name: Invalidate Cloudfront Distribution
4242
run: aws cloudfront create-invalidation --distribution-id $CF_DISTRIBUTION_ID --paths '/chaindata.json'
4343

44-
trigger-downstream-deployments:
44+
trigger-sync-chaindata:
4545
runs-on: ubuntu-latest
4646
needs: [terraform-deploy-assets]
4747
steps:
48-
- name: Trigger API mainnet-staging deployment
48+
- name: Trigger sync-chaindata workflow in everclear-agents
4949
run: |
5050
curl -X POST \
5151
-H "Accept: application/vnd.github.v3+json" \
5252
-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"}'
53+
https://api.github.com/repos/everclearorg/everclear-agents/dispatches \
54+
-d '{"event_type":"chaindata-sync","client_payload":{"sha":"${{ github.sha }}","ref":"${{ github.ref }}","run_id":"${{ github.run_id }}"}}'

0 commit comments

Comments
 (0)