fix(ci): keep optional report extraction non-blocking
This commit is contained in:
1 parent
cc714b427a
commit
410a1e466c
1 file changed
+3
-3
@@ -101,12 +101,12 @@ DOCKER_BUILDKIT=1 docker build --network=host --progress=plain --cache-from epic
|
|||||||
check_current
|
check_current
|
||||||
# Read reports from the already-built image; do not start an extra application.
|
# Read reports from the already-built image; do not start an extra application.
|
||||||
report_container=""
|
report_container=""
|
||||||
if report_container="$(docker create --entrypoint /bin/true "$image")"; then
|
if report_container="$(docker create --entrypoint /bin/true "$image")" && [ -n "$report_container" ]; then
|
||||||
mkdir -p build-reports
|
mkdir -p build-reports
|
||||||
if docker cp "$report_container:/app/build-reports/." build-reports; then
|
if docker cp "$report_container:/app/build-reports/." build-reports && [ -s build-reports/report.md ]; then
|
||||||
cat build-reports/report.md
|
cat build-reports/report.md
|
||||||
if [ -n "${GITHUB_STEP_SUMMARY:-}" ]; then
|
if [ -n "${GITHUB_STEP_SUMMARY:-}" ]; then
|
||||||
cat build-reports/report.md >> "$GITHUB_STEP_SUMMARY"
|
cat build-reports/report.md >> "$GITHUB_STEP_SUMMARY" || echo "Warning: could not append performance summary" >&2
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Warning: build performance report unavailable" >&2
|
echo "Warning: build performance report unavailable" >&2
|
||||||
|
|||||||
Reference in new issue
Block a user