-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.6 KB
/
run-corfu-cloud-deployment.yml
File metadata and controls
44 lines (37 loc) · 1.6 KB
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
name: Helm Deployment and Cloud run
on: workflow_dispatch
jobs:
corfu-helm-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: satackey/action-docker-layer-caching@v0.0.8
continue-on-error: true
- name: Create 1st k3s Cluster
uses: AbsaOSS/k3d-action@v2
with:
cluster-name: "corfu"
args: >-
--volume /tmp/k3dvol:/tmp/k3dvol
--agents 2
--k3s-arg "--no-deploy=traefik,servicelb,metrics-server@server:*"
# https://github.com/CorfuDB/corfudb-cloud/blob/master/cloud/corfu/corfu/readme.md
- name: helm install
working-directory: ./cloud/corfu
run: |
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
helm repo add jetstack https://charts.jetstack.io
helm repo update
helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --version v1.8.0 --set installCRDs=true
helm install corfu corfu --set persistence.enabled=true --set global.replicas=3
sleep 120
if kubectl wait --for=condition=complete --timeout=180s job/configure-corfu | grep "job.batch/configure-corfu condition met"; then
echo "Successfull deployment!"
exit 0
else
echo "Failed deployment!"
exit 1
fi