Skip to content

Commit 5e0807a

Browse files
authored
Archive Porch server logs in GitHub Actions (#3828)
1 parent 7afc49b commit 5e0807a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/porch-e2e.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,14 @@ jobs:
9999
working-directory: ./porch/test/e2e
100100
- name: Porch CLI e2e test
101101
run: make test-porch
102+
- name: porch e2e logs
103+
if: always()
104+
run: |
105+
name=$(kubectl -n porch-system get pod -l app=porch-server -o custom-columns=NAME:.metadata.name --no-headers=true)
106+
kubectl -n porch-system logs $name > porch-e2e-server.log
107+
- name: Archive logs
108+
if: always()
109+
uses: actions/upload-artifact@v3
110+
with:
111+
name: porch-e2e-server.log
112+
path: porch-e2e-server.log

0 commit comments

Comments
 (0)