@@ -15,11 +15,17 @@ runs:
1515 shell : bash
1616 run : |
1717 uv python install 3.12
18- - name : Install bats
18+ - name : Install bats (Linux)
1919 shell : bash
20+ if : runner.os == 'Linux'
2021 run : |
2122 sudo apt-get update
2223 sudo apt-get install -y bats bats-support bats-assert
24+ - name : Install bats (macOS)
25+ shell : bash
26+ if : runner.os == 'macOS'
27+ run : |
28+ brew install bats-core bat-extras
2329 - name : Checkout jumpstarter controller
2430 uses : actions/checkout@v4
2531 with :
3238 repository : jumpstarter-dev/jumpstarter
3339 ref : ${{ inputs.jumpstarter-ref }}
3440 path : jumpstarter
41+ - name : Install Docker and Kind (macOS)
42+ if : runner.os == 'macOS'
43+ shell : bash
44+ run : |
45+ brew install colima docker kind go kubectl helm gnu-sed
46+ colima start --network-address --cpu 4 --memory 8 --mount-type virtiofs
3547 - name : Deploy dex
3648 shell : bash
3749 run : |
@@ -59,12 +71,20 @@ runs:
5971 --group=system:unauthenticated
6072
6173 helm repo add dex https://charts.dexidp.io
62- helm install --namespace dex --wait -f "$GITHUB_ACTION_PATH"/dex.values.yaml dex dex/dex
74+ helm install --namespace dex --wait --timeout 20m -f "$GITHUB_ACTION_PATH"/dex.values.yaml dex dex/dex
75+
76+ if [[ "$(uname)" == "Darwin" ]]; then
77+ echo "192.168.65.2 dex.dex.svc.cluster.local" | sudo tee -a /etc/hosts
78+ gsed -i 's|$("${SCRIPT_DIR}"/get_ext_ip.sh)|192.168.65.2|' ./controller/hack/deploy_with_helm.sh
79+ gsed -i 's|RETRIES=60|RETRIES=600|' ./controller/hack/deploy_with_helm.sh
6380
64- sudo cp ca.pem /usr/local/share/ca-certificates/dex.crt
65- sudo update-ca-certificates
81+ sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ca.pem
82+ else
83+ echo "127.0.0.1 dex.dex.svc.cluster.local" | sudo tee -a /etc/hosts
6684
67- echo "127.0.0.1 dex.dex.svc.cluster.local" | sudo tee -a /etc/hosts
85+ sudo cp ca.pem /usr/local/share/ca-certificates/dex.crt
86+ sudo update-ca-certificates
87+ fi
6888 - name : Deploy jumpstarter controller
6989 shell : bash
7090 run : |
90110 . .venv/bin/activate
91111
92112 export JUMPSTARTER_GRPC_INSECURE=1
113+ export JUMPSTARTER_FORCE_SYSTEM_CERTS=1
93114
94115 kubectl create -n default sa test-client-sa
95116 kubectl create -n default sa test-exporter-sa
0 commit comments