-
Notifications
You must be signed in to change notification settings - Fork 5
63 lines (61 loc) · 4.24 KB
/
airflow_runs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Sync repo and Trigger DAGs
on:
push:
branches:
- main
release:
types: [published]
jobs:
remote-deploy:
runs-on: ubuntu-latest
steps:
- name: Trigger dev DAGs
if: github.event_name == 'push'
run: |
curl -X POST http://${{ secrets.AIRFLOW_HOST }}:${{ secrets.AIRFLOW_PORT }}/api/v1/dags/v3_etl_base_mainnet_dev/dagRuns \
--user "${{ secrets.AIRFLOW_USERNAME }}:${{ secrets.AIRFLOW_PASSWORD }}" \
-H "Content-Type: application/json" \
--data "{\"dag_run_id\": \"gitaction__$(date -u +%Y-%m-%dT%H:%M:%SZ)\", \"conf\": {}}"
curl -X POST http://${{ secrets.AIRFLOW_HOST }}:${{ secrets.AIRFLOW_PORT }}/api/v1/dags/v3_etl_arbitrum_mainnet_dev/dagRuns \
--user "${{ secrets.AIRFLOW_USERNAME }}:${{ secrets.AIRFLOW_PASSWORD }}" \
-H "Content-Type: application/json" \
--data "{\"dag_run_id\": \"gitaction__$(date -u +%Y-%m-%dT%H:%M:%SZ)\", \"conf\": {}}"
curl -X POST http://${{ secrets.AIRFLOW_HOST }}:${{ secrets.AIRFLOW_PORT }}/api/v1/dags/v3_etl_eth_mainnet_dev/dagRuns \
--user "${{ secrets.AIRFLOW_USERNAME }}:${{ secrets.AIRFLOW_PASSWORD }}" \
-H "Content-Type: application/json" \
--data "{\"dag_run_id\": \"gitaction__$(date -u +%Y-%m-%dT%H:%M:%SZ)\", \"conf\": {}}"
curl -X POST http://${{ secrets.AIRFLOW_HOST }}:${{ secrets.AIRFLOW_PORT }}/api/v1/dags/v3_etl_snax_mainnet_dev/dagRuns \
--user "${{ secrets.AIRFLOW_USERNAME }}:${{ secrets.AIRFLOW_PASSWORD }}" \
-H "Content-Type: application/json" \
--data "{\"dag_run_id\": \"gitaction__$(date -u +%Y-%m-%dT%H:%M:%SZ)\", \"conf\": {}}"
curl -X POST http://${{ secrets.AIRFLOW_HOST }}:${{ secrets.AIRFLOW_PORT }}/api/v1/dags/v3_etl_snax_testnet_dev/dagRuns \
--user "${{ secrets.AIRFLOW_USERNAME }}:${{ secrets.AIRFLOW_PASSWORD }}" \
-H "Content-Type: application/json" \
--data "{\"dag_run_id\": \"gitaction__$(date -u +%Y-%m-%dT%H:%M:%SZ)\", \"conf\": {}}"
- name: Trigger prod DAGs
if: github.event_name == 'release'
run: |
curl -X POST http://${{ secrets.AIRFLOW_HOST }}:${{ secrets.AIRFLOW_PORT }}/api/v1/dags/v3_etl_base_mainnet_prod/dagRuns \
--user "${{ secrets.AIRFLOW_USERNAME }}:${{ secrets.AIRFLOW_PASSWORD }}" \
-H "Content-Type: application/json" \
--data "{\"dag_run_id\": \"gitaction__$(date -u +%Y-%m-%dT%H:%M:%SZ)\", \"conf\": {}}"
curl -X POST http://${{ secrets.AIRFLOW_HOST }}:${{ secrets.AIRFLOW_PORT }}/api/v1/dags/v3_etl_arbitrum_mainnet_prod/dagRuns \
--user "${{ secrets.AIRFLOW_USERNAME }}:${{ secrets.AIRFLOW_PASSWORD }}" \
-H "Content-Type: application/json" \
--data "{\"dag_run_id\": \"gitaction__$(date -u +%Y-%m-%dT%H:%M:%SZ)\", \"conf\": {}}"
curl -X POST http://${{ secrets.AIRFLOW_HOST }}:${{ secrets.AIRFLOW_PORT }}/api/v1/dags/v3_etl_eth_mainnet_prod/dagRuns \
--user "${{ secrets.AIRFLOW_USERNAME }}:${{ secrets.AIRFLOW_PASSWORD }}" \
-H "Content-Type: application/json" \
--data "{\"dag_run_id\": \"gitaction__$(date -u +%Y-%m-%dT%H:%M:%SZ)\", \"conf\": {}}"
curl -X POST http://${{ secrets.AIRFLOW_HOST }}:${{ secrets.AIRFLOW_PORT }}/api/v1/dags/v3_etl_snax_mainnet_prod/dagRuns \
--user "${{ secrets.AIRFLOW_USERNAME }}:${{ secrets.AIRFLOW_PASSWORD }}" \
-H "Content-Type: application/json" \
--data "{\"dag_run_id\": \"gitaction__$(date -u +%Y-%m-%dT%H:%M:%SZ)\", \"conf\": {}}"
curl -X POST http://${{ secrets.AIRFLOW_HOST }}:${{ secrets.AIRFLOW_PORT }}/api/v1/dags/v3_etl_snax_testnet_prod/dagRuns \
--user "${{ secrets.AIRFLOW_USERNAME }}:${{ secrets.AIRFLOW_PASSWORD }}" \
-H "Content-Type: application/json" \
--data "{\"dag_run_id\": \"gitaction__$(date -u +%Y-%m-%dT%H:%M:%SZ)\", \"conf\": {}}"
curl -X POST http://${{ secrets.AIRFLOW_HOST }}:${{ secrets.AIRFLOW_PORT }}/api/v1/dags/v2_etl_optimism_mainnet/dagRuns \
--user "${{ secrets.AIRFLOW_USERNAME }}:${{ secrets.AIRFLOW_PASSWORD }}" \
-H "Content-Type: application/json" \
--data "{\"dag_run_id\": \"gitaction__$(date -u +%Y-%m-%dT%H:%M:%SZ)\", \"conf\": {}}"