chore(CI): print log when deployment helm fail
This commit is contained in:
parent
ed53b859d9
commit
5b671e5c4f
|
@ -130,11 +130,27 @@ jobs:
|
||||||
echo "waiting emqx started";
|
echo "waiting emqx started";
|
||||||
sleep 10;
|
sleep 10;
|
||||||
done
|
done
|
||||||
- name: get pods log
|
- name: get emqx-0 pods log
|
||||||
if: failure()
|
if: failure()
|
||||||
env:
|
env:
|
||||||
KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||||
run: kubectl describe pods emqx-0
|
run: |
|
||||||
|
kubectl describe pods emqx-0
|
||||||
|
kubectl logs emqx-0
|
||||||
|
- name: get emqx-1 pods log
|
||||||
|
if: failure()
|
||||||
|
env:
|
||||||
|
KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||||
|
run: |
|
||||||
|
kubectl describe pods emqx-1
|
||||||
|
kubectl logs emqx-1
|
||||||
|
- name: get emqx-2 pods log
|
||||||
|
if: failure()
|
||||||
|
env:
|
||||||
|
KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||||
|
run: |
|
||||||
|
kubectl describe pods emqx-2
|
||||||
|
kubectl logs emqx-2
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: emqx/paho.mqtt.testing
|
repository: emqx/paho.mqtt.testing
|
||||||
|
|
Loading…
Reference in New Issue