Skip to content

Commit

Permalink
Archive Porch server logs in GitHub Actions (#3828)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortent committed Feb 21, 2023
1 parent 7afc49b commit 5e0807a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/porch-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,14 @@ jobs:
working-directory: ./porch/test/e2e
- name: Porch CLI e2e test
run: make test-porch
- 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 5e0807a

Please sign in to comment.