diff --git a/Dockerfile b/Dockerfile index 60c7583dc5..506d377b8c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,8 @@ ARG XIAOMI_PUSH_APP_KEY ARG YOUTUBE_KEY ENV WORK_DIR="/android/navi" \ - ANDROID_APK_DIR="app/build/outputs/apk" + ANDROID_APK_DIR="app/build/outputs/apk" \ + CI=true COPY . $WORK_DIR WORKDIR $WORK_DIR diff --git a/settings.gradle b/settings.gradle index b045d229f9..5ea5e2a525 100644 --- a/settings.gradle +++ b/settings.gradle @@ -11,6 +11,9 @@ include ':navi-widgets' include ':navi-design' include ':navi-chat' include ':navi-vkyc' + +boolean isCiServer = System.getenv().getOrDefault("CI", "false") == "true" + buildCache { local { enabled = true @@ -18,7 +21,9 @@ buildCache { removeUnusedEntriesAfterDays = 15 } remote(HttpBuildCache) { - enabled = false + enabled = true + push = isCiServer + url = "https://gradle-cache.cmd.navi-tech.in/cache/" } } include ':navi-base'