Skip to content

Commit

Permalink
ci: tgz logs on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
wuputah committed Oct 12, 2023
1 parent 3fcb48d commit 1c03667
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,16 @@ jobs:
TEST_AWS_REGION: us-east-1
TEST_AWS_S3_BUCKET: hydra-test-fixtures
run: make postgres_pull_upgrade_image postgres_acceptance_test
- name: tgz container logs
if: failure()
run: |
tar -czf /test_results.tar.gz ${{ env.TEST_ARTIFACT_DIR }}
- name: Upload test container logs
if: failure()
uses: actions/upload-artifact@v3
with:
name: postgres_${{ matrix.postgres }}_container_logs
path: ${{ env.TEST_ARTIFACT_DIR }}
path: /test_results.tar.gz
retention-days: 7
- name: Bake multi-platform Postgres
if: github.ref == 'refs/heads/main'
Expand Down

0 comments on commit 1c03667

Please sign in to comment.