mirror of
https://github.com/ironfox-oss/IronFox.git
synced 2026-04-19 14:40:21 -04:00
ci: ensure logs are always uploaded to artifacts
Signed-off-by: Akash Yadav <itsaky01@gmail.com>
This commit is contained in:
@@ -147,8 +147,9 @@ build-apk:
|
||||
<<: *build_variables
|
||||
<<: *build_setup_steps
|
||||
script:
|
||||
- echo "Building APK..." | tee -a "build-apk-$BUILD_VARIANT.log"
|
||||
- bash -x scripts/ci-build.sh | tee -a "build-apk-$BUILD_VARIANT.log"
|
||||
- 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"
|
||||
artifacts:
|
||||
untracked: false
|
||||
when: always
|
||||
@@ -158,7 +159,7 @@ build-apk:
|
||||
paths:
|
||||
- $CI_PROJECT_DIR/artifacts/apk/**/*
|
||||
- $CI_PROJECT_DIR/artifacts/aar/**/*
|
||||
- build-apk.log
|
||||
- $CI_PROJECT_DIR/artifacts/logs/**/*
|
||||
rules:
|
||||
- if: $CI_PROJECT_NAMESPACE != "ironfox-oss"
|
||||
when: never
|
||||
@@ -187,8 +188,9 @@ build-bundle:
|
||||
<<: *build_variables
|
||||
<<: *build_setup_steps
|
||||
script:
|
||||
- echo "Building Bundle..." | tee -a build-bundle.log
|
||||
- bash -x scripts/ci-build.sh | tee -a build-bundle.log
|
||||
- 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"
|
||||
artifacts:
|
||||
untracked: false
|
||||
when: always
|
||||
@@ -197,7 +199,7 @@ build-bundle:
|
||||
expire_in: "30 days"
|
||||
paths:
|
||||
- $CI_PROJECT_DIR/artifacts/apks/**/*
|
||||
- build-bundle.log
|
||||
- $CI_PROJECT_DIR/artifacts/logs/**/*
|
||||
rules:
|
||||
- if: $CI_PROJECT_NAMESPACE != "ironfox-oss"
|
||||
when: never
|
||||
|
||||
Reference in New Issue
Block a user