ci(logs): print summary and upload logs as artifact
Some checks are pending
dev / build-and-push (push) Waiting to run

This commit is contained in:
Nicolas Cantu 2025-09-10 13:06:26 +02:00
parent 4f0d2bf8f6
commit 2d8395a834

View File

@ -40,3 +40,20 @@ jobs:
run: | run: |
DOCKER_TAG=$(git rev-parse --abbrev-ref HEAD) DOCKER_TAG=$(git rev-parse --abbrev-ref HEAD)
bash scripts/build_and_push.sh "$DOCKER_TAG" bash scripts/build_and_push.sh "$DOCKER_TAG"
- name: Show logs summary
if: always()
run: |
DOCKER_TAG=$(git rev-parse --abbrev-ref HEAD)
if [ -f "log/ci/${DOCKER_TAG}/summary.txt" ]; then
echo "=== Summary for ${DOCKER_TAG} ==="
cat "log/ci/${DOCKER_TAG}/summary.txt"
else
echo "No summary found for ${DOCKER_TAG}"
fi
- name: Upload logs artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: ci-logs-${{ github.ref_name || 'branch' }}
path: log/ci/**
if-no-files-found: ignore