mirror of https://github.com/apache/druid.git
fix uploading IT docker logs to GHA artifacts (#15046)
This commit is contained in:
parent
022950a0c5
commit
fa61e654e4
|
@ -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' }}
|
||||
|
|
|
@ -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' }}
|
||||
|
|
Loading…
Reference in New Issue