This commit is contained in:
@@ -10,9 +10,9 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: localhost:5000/tiny-ci-runner:latest
|
image: localhost:5000/tiny-ci-runner:latest
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/k3s-local.yaml:/root/.kube/config:ro
|
- /etc/k3s-local.yaml:/tmp/kubeconfig:ro
|
||||||
env:
|
env:
|
||||||
KUBECONFIG: /root/.kube/config
|
KUBECONFIG: /tmp/kubeconfig
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -37,10 +37,11 @@ jobs:
|
|||||||
-t localhost:5000/frontend:latest .
|
-t localhost:5000/frontend:latest .
|
||||||
docker push localhost:5000/frontend:latest
|
docker push localhost:5000/frontend:latest
|
||||||
|
|
||||||
- name: Debug kubeconfig existence
|
- name: Debug kubeconfig
|
||||||
run: |
|
run: |
|
||||||
ls -la /root/.kube/
|
ls -l /tmp/kubeconfig
|
||||||
grep server /root/.kube/config
|
kubectl config view
|
||||||
|
kubectl get nodes
|
||||||
|
|
||||||
- name: Deploy to K3s
|
- name: Deploy to K3s
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user