Skip to content

Commit 13336f6

Browse files
separate artifact collection steps
1 parent 87db419 commit 13336f6

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,17 @@ jobs:
8181
- name: Run the tests
8282
run: bin/test
8383

84-
- name: Collect additional artifacts
84+
- name: Retain the compose file
8585
if: ${{ always() }}
86-
run: |
87-
docker compose logs > "${ARTIFACTS_DIR}/docker-services.log" || true
88-
docker events --json --since $TEST_START --until `date +%s` > "${ARTIFACTS_DIR}/docker-events.log" || true
89-
docker compose config > "${ARTIFACTS_DIR}/docker-compose.yml" || true
86+
run: docker compose config | tee "${ARTIFACTS_DIR}/docker-compose.yml"
87+
88+
- name: Retain compose logs
89+
if: ${{ always() }}
90+
run: docker compose logs | tee "${ARTIFACTS_DIR}/docker-services.log"
91+
92+
- name: Retain Docker events
93+
if: ${{ always() }}
94+
run: docker events --json --since $TEST_START --until `date +%s` | tee "${ARTIFACTS_DIR}/docker-events.json"
9095

9196
- name: Upload test report
9297
if: ${{ always() }}

0 commit comments

Comments
 (0)