mirror of https://github.com/knative/func.git
chore: cluster log (#2321)
Save logs as an GH artifact Signed-off-by: Matej Vašek <mvasek@redhat.com>
This commit is contained in:
parent
619be59d86
commit
3db3af91f5
|
@ -46,13 +46,20 @@ jobs:
|
||||||
- name: Dump Cluster Logs
|
- name: Dump Cluster Logs
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
echo "::group::cluster events"
|
echo "::group::cluster events" >> cluster_log.txt
|
||||||
kubectl get events -A
|
kubectl get events -A >> cluster_log.txt 2>&1
|
||||||
echo "::endgroup::"
|
echo "::endgroup::" >> cluster_log.txt
|
||||||
|
|
||||||
echo "::group::cluster containers logs"
|
echo "::group::cluster containers logs" >> cluster_log.txt
|
||||||
stern '.*' --all-namespaces --no-follow
|
stern '.*' --all-namespaces --no-follow >> cluster_log.txt 2>&1
|
||||||
echo "::endgroup::"
|
echo "::endgroup::" >> cluster_log.txt
|
||||||
|
- name: "Archive log results"
|
||||||
|
if: always()
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: cluster-logs
|
||||||
|
path: ./cluster_log.txt
|
||||||
|
retention-days: 7
|
||||||
- uses: codecov/codecov-action@v4
|
- uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: ./coverage.txt
|
files: ./coverage.txt
|
||||||
|
|
Loading…
Reference in New Issue