Skip to content

Commit edfb81c

Browse files
committed
gha: test: redirect docker logs to files using &> for both stdout & stderr
1 parent 3f1f796 commit edfb81c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
run: |
7777
echo "Sleeping 10s..."
7878
sleep 10
79-
docker logs docker_registry_proxy > initial_logs.txt
79+
docker logs docker_registry_proxy &> initial_logs.txt
8080
8181
- name: "LOG: initial_logs.txt"
8282
run: pipetty ccze -A < initial_logs.txt
@@ -156,7 +156,7 @@ jobs:
156156
157157
- name: Get the cold cache logs for the container into a file
158158
run: |
159-
docker logs docker_registry_proxy > cold_cache.txt
159+
docker logs docker_registry_proxy &> cold_cache.txt
160160
161161
- name: "LOG: cold_cache.txt"
162162
run: |
@@ -183,7 +183,7 @@ jobs:
183183
184184
- name: Get the warm cache docker logs for the container into a file
185185
run: |
186-
docker logs docker_registry_proxy > warm_cache.txt
186+
docker logs docker_registry_proxy &> warm_cache.txt
187187
188188
- name: "LOG: warm_cache.txt"
189189
run: |

0 commit comments

Comments
 (0)