-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (48 loc) · 1.32 KB
/
deploy-kind.yaml
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
name: Single node cluster with Kind
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
ICL_BUILD_CCN: true
ICL_INGRESS_HOST_PORTS: false
ICL_CCN_NETWORK: container:x1-control-plane
jobs:
deploy:
runs-on:
- self-hosted
- docker
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Delete the existing cluster
run: |
./scripts/deploy/kind.sh --delete
- name: Create ICL environment file
run: |
mkdir .x1
cat << EOF > .x1/environment
ICL_RAY_ENDPOINT=localtest.me:30009
EOF
- name: Deploy a cluster with kind
run: |
./scripts/deploy/kind.sh
- name: Run tests
run: |
./scripts/deploy/kind.sh --console ./scripts/ccn/test.sh
- name: Delete the existing cluster
if: always()
run: |
./scripts/deploy/kind.sh --delete
- name: Upload logs
if: always()
uses: actions/upload-artifact@v4
with:
name: logs
path: logs
if-no-files-found: ignore