-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (44 loc) · 1.27 KB
/
module-1-advanced.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
58
59
60
name: Module 1 Advanced
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- 'module-1/**'
jobs:
k8s-test-deployment-action:
runs-on: ubuntu-latest
steps:
- name: Create k8s Kind Cluster
uses: helm/[email protected]
- name: Checkout
uses: actions/checkout@v4
- name: Deploy application
run: |
kubectl create -f module-1/k8s-resources/deployment-app-web.yaml
- name: Print pods
run: |
sleep 5 && kubectl get pod -A
- name: Print pods
run: |
kubectl wait --for=condition=available --timeout=180s deployment/deployments-app-web
- name: Print pods
run: |
sleep 5 && kubectl get pod -A
modal-lab-example-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install modal & setup creds
run: |
pip install modal --upgrade
modal token set --token-id ${{ secrets.MODAL_MODAL_LABS_TOKEN_ID }} --token-secret ${{ secrets.MODAL_MODAL_LABS_TOKEN_SECRET }}
- name: Run function
run: |
modal run ./module-1/modal_hello_world.py