-
Notifications
You must be signed in to change notification settings - Fork 91
97 lines (82 loc) · 3.48 KB
/
deploy.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
name: deploy
on:
pull_request:
push:
branches: [main]
concurrency:
group: deploy-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
# Deploy the CDK environment in one step.
monolithic_cdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy kurtosis package
uses: kurtosis-tech/kurtosis-github-action@v1
with:
path: .
args: params.yml
# Deploy the CDK environment incrementally, stage by stage.
incremental_cdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Install tools.
- name: Install kurtosis
run: |
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
sudo apt update
sudo apt install kurtosis-cli
kurtosis analytics disable
- name: Install yq
run: |
sudo add-apt-repository ppa:rmescandon/yq
sudo apt update
sudo apt install --yes yq
# Deploy components.
- name: Disable All Deployment Steps
run: |
yq e '.deploy_l1 = false' --inplace params.yml
yq e '.deploy_zkevm_contracts_on_l1 = false' --inplace params.yml
yq e '.deploy_databases = false' --inplace params.yml
yq e '.deploy_cdk_central_environment = false' --inplace params.yml
yq e '.deploy_cdk_bridge_infra = false' --inplace params.yml
yq e '.deploy_zkevm_permissionless_node = false' --inplace params.yml
yq e '.deploy_observability = false' --inplace params.yml
- name: Deploy L1
run: |
yq e '.deploy_l1 = true' --inplace params.yml
kurtosis run --enclave cdk-v1 --args-file params.yml .
yq e '.deploy_l1 = false' --inplace params.yml # reset
- name: Deploy ZkEVM Contracts on L1
run: |
yq e '.deploy_zkevm_contracts_on_l1 = true' --inplace params.yml
kurtosis run --enclave cdk-v1 --args-file params.yml .
yq e '.deploy_zkevm_contracts_on_l1 = false' --inplace params.yml # reset
- name: Deploy ZkEVM Node and CDK Peripheral Databases
run: |
yq e '.deploy_databases = true' --inplace params.yml
kurtosis run --enclave cdk-v1 --args-file params.yml .
yq e '.deploy_databases = false' --inplace params.yml # reset
- name: Deploy CDK Central Environment
run: |
yq e '.deploy_cdk_central_environment = true' --inplace params.yml
kurtosis run --enclave cdk-v1 --args-file params.yml .
yq e '.deploy_cdk_central_environment = false' --inplace params.yml # reset
- name: Deploy CDK Bridge Infrastructure
run: |
yq e '.deploy_cdk_bridge_infra = true' --inplace params.yml
kurtosis run --enclave cdk-v1 --args-file params.yml .
yq e '.deploy_cdk_bridge_infra = false' --inplace params.yml # reset
- name: Deploy ZkEVM Permissionless Node
run: |
yq e '.deploy_zkevm_permissionless_node = true' --inplace params.yml
kurtosis run --enclave cdk-v1 --args-file params.yml .
yq e '.deploy_zkevm_permissionless_node = false' --inplace params.yml # reset
- name: Deploy Observability Stack
run: |
yq e '.deploy_observability = true' --inplace params.yml
kurtosis run --enclave cdk-v1 --args-file params.yml .
yq e '.deploy_observability = false' --inplace params.yml # reset