fix uploading IT docker logs to GHA artifacts (#15046)

This commit is contained in:
Tejaswini Bandlamudi 2023-09-28 15:25:52 +05:30 committed by GitHub
parent 022950a0c5
commit fa61e654e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -137,6 +137,7 @@ jobs:
- name: Collect docker logs on failure
if: ${{ failure() && steps.run-it.conclusion == 'failure' }}
run: |
mkdir docker-logs
for c in $(docker ps -a --format="{{.Names}}")
do
docker logs $c > ./docker-logs/$c.log
@ -156,8 +157,7 @@ jobs:
- name: Collect service logs on failure
if: ${{ failure() && steps.run-it.conclusion == 'failure' }}
run: |
docker cp middlemanager:/shared/logs/ ./service-logs
tar cvzf ./service-logs.tgz ./service-logs
tar cvzf ./service-logs.tgz ~/shared/logs
- name: Upload Druid service logs to GitHub
if: ${{ failure() && steps.run-it.conclusion == 'failure' }}

View File

@ -91,6 +91,7 @@ jobs:
- name: Collect docker logs on failure
if: ${{ failure() && steps.run-it.conclusion == 'failure' }}
run: |
mkdir docker-logs
for c in $(docker ps -a --format="{{.Names}}")
do
docker logs $c > ./docker-logs/$c.log
@ -110,8 +111,7 @@ jobs:
- name: Collect service logs on failure
if: ${{ failure() && steps.run-it.conclusion == 'failure' }}
run: |
docker cp druid-middlemanager:/shared/logs/ ./service-logs
tar cvzf ./service-logs.tgz ./service-logs
tar cvzf ./service-logs.tgz ./shared/logs
- name: Upload Druid service logs to GitHub
if: ${{ failure() && steps.run-it.conclusion == 'failure' }}