ci: redirect all build logs to files; without terminal output

Signed-off-by: Akash Yadav <itsaky01@gmail.com>
This commit is contained in:
Akash Yadav
2025-08-30 09:44:54 +05:30
committed by celenity
parent 6abe24af83
commit 2ac23764cd

View File

@@ -151,8 +151,8 @@ build-apk:
script:
- mkdir -vp "$CI_PROJECT_DIR/artifacts/logs"
- BUILD_LOG_FILE="$CI_PROJECT_DIR/artifacts/logs/build-apk-$BUILD_VARIANT.log"
- echo "Building APK..." | tee -a "$BUILD_LOG_FILE"
- bash -x scripts/ci-build.sh | tee -a "$BUILD_LOG_FILE"
- echo "Building APK..." > "$BUILD_LOG_FILE" 2>&1
- bash -x scripts/ci-build.sh >> "$BUILD_LOG_FILE" 2>&1
artifacts:
untracked: false
when: always
@@ -193,8 +193,8 @@ build-bundle:
script:
- mkdir -vp "$CI_PROJECT_DIR/artifacts/logs"
- BUILD_LOG_FILE="$CI_PROJECT_DIR/artifacts/logs/build-bundle.log"
- echo "Building Bundle..." | tee -a "$BUILD_LOG_FILE"
- bash -x scripts/ci-build.sh | tee -a "$BUILD_LOG_FILE"
- echo "Building Bundle..." > "$BUILD_LOG_FILE" 2>&1
- bash -x scripts/ci-build.sh >> "$BUILD_LOG_FILE" 2>&1
artifacts:
untracked: false
when: always