mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-06-29 09:07:00 +00:00
github: export and upload e2e test kind logs (#1157)
When things go wrong the logs can help figure out why. Signed-off-by: Dan Williams <dcbw@redhat.com>
This commit is contained in:
parent
7ea924b8f1
commit
02ce071abb
15
.github/workflows/kind-e2e.yml
vendored
15
.github/workflows/kind-e2e.yml
vendored
@ -25,6 +25,8 @@ jobs:
|
|||||||
# - docker-file: images/Dockerfile
|
# - docker-file: images/Dockerfile
|
||||||
# cni-version: "1.0.0"
|
# cni-version: "1.0.0"
|
||||||
# multus-manifest: multus-daemonset.yml
|
# multus-manifest: multus-daemonset.yml
|
||||||
|
env:
|
||||||
|
JOB_NAME: "${{ matrix.cni-version }}-${{ matrix.multus-manifest }}"
|
||||||
|
|
||||||
if: >
|
if: >
|
||||||
(( github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login ) &&
|
(( github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login ) &&
|
||||||
@ -90,6 +92,19 @@ jobs:
|
|||||||
working-directory: ./e2e
|
working-directory: ./e2e
|
||||||
run: ./test-default-route1.sh
|
run: ./test-default-route1.sh
|
||||||
|
|
||||||
|
- name: Export kind logs
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
mkdir -p /tmp/kind/logs
|
||||||
|
kind export logs --loglevel=debug /tmp/kind/logs
|
||||||
|
|
||||||
|
- name: Upload kind logs
|
||||||
|
if: always()
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: kind-logs-${{ env.JOB_NAME }}-${{ github.run_id }}
|
||||||
|
path: /tmp/kind/logs
|
||||||
|
|
||||||
- name: cleanup cluster and registry
|
- name: cleanup cluster and registry
|
||||||
run: |
|
run: |
|
||||||
kind delete cluster
|
kind delete cluster
|
||||||
|
Loading…
Reference in New Issue
Block a user