Skip to content

Commit

Permalink
Archive Porch server logs in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mortent committed Feb 19, 2023
1 parent 25b8cec commit 4c05b1f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/porch-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,18 @@ jobs:
working-directory: ./porch/test/e2e
- name: Porch CLI e2e test
run: make test-porch
- name: List pods in porch-system
if: always()
run: |
kubectl -n porch-system get pod
- name: porch e2e logs
if: always()
run: |
name=$(kubectl -n porch-system get pod -l app=porch-server -o custom-columns=NAME:.metadata.name --no-headers=true)
kubectl -n porch-system logs $name > porch-e2e-server.log
- name: Archive logs
if: always()
uses: actions/upload-artifact@v3
with:
name: porch-e2e-server.log
path: porch-e2e-server.log

0 comments on commit 4c05b1f

Please sign in to comment.