Skip to content

Commit c378def

Browse files
committed
CI-specific fix
1 parent 6b25749 commit c378def

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/tests.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,30 @@ jobs:
3232
kubectl version
3333
kubectl get nodes
3434
35+
- name: Create dummy kubeconfig for CI
36+
run: |
37+
# Create a dummy kubeconfig so backend can start without real k8s connection
38+
cat > backend/kubeconfig.yaml <<EOF
39+
apiVersion: v1
40+
kind: Config
41+
clusters:
42+
- name: ci-cluster
43+
cluster:
44+
server: https://host.docker.internal:6443
45+
insecure-skip-tls-verify: true
46+
users:
47+
- name: ci-user
48+
user:
49+
token: "ci-token"
50+
contexts:
51+
- name: ci
52+
context:
53+
cluster: ci-cluster
54+
user: ci-user
55+
current-context: ci
56+
EOF
57+
echo "Created dummy kubeconfig for CI"
58+
3559
- name: Modify Docker Compose for CI
3660
run: |
3761
cp docker-compose.yaml docker-compose.ci.yaml

0 commit comments

Comments
 (0)