Skip to content

Commit

Permalink
chore(deployment): create deployment tools for sequencer
Browse files Browse the repository at this point in the history
  • Loading branch information
alon-dotan-starkware committed Oct 30, 2024
1 parent ee6513d commit 0d1ef33
Show file tree
Hide file tree
Showing 17 changed files with 57,263 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Sequencer Deployment Test
on:
push:
branches:
- main
- main-v[0-9].**
tags:
- v[0-9].**
# TODO(Dori, 1/9/2024): Decide when exactly native-blockifier artifacts will be built. Until
# then, keep the 'paths' key empty and build on every push to a release branch / tag.

pull_request:
types:
- opened
- reopened
- synchronize
- auto_merge_enabled
- edited
paths:
- 'deployments/sequencer/*'


jobs:
deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
# Install deps.
npm install -g cdk8s-cli
python3 -m pip install pipenv
# Synthesize the CDK8s Sequencer app.
cd deployments/sequencer
cdk8s synth
13 changes: 13 additions & 0 deletions deployments/sequencer/Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
constructs = "~=10.2.70"
cdk8s = "~=2.66.2"

[requires]
python_version = "3.10"
116 changes: 116 additions & 0 deletions deployments/sequencer/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions deployments/sequencer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# CRD

Example usage of [`Custom Resources Definitions`](https://cdk8s.io/docs/latest/cli/import/#crds) construct and to define them within a cdk8s application:

- `App` (Core)
- `Chart` (Core)
- `Certificate` (CRD)
5 changes: 5 additions & 0 deletions deployments/sequencer/cdk8s.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: python
app: pipenv install && pipenv run python ./main.py
imports:
- k8s@1.26.0
- resources/crds/backendconfigs_cloud_google_com.yaml
Loading

0 comments on commit 0d1ef33

Please sign in to comment.