From 085874c77050476d3b0a4c111974cd7cd4b305ed Mon Sep 17 00:00:00 2001 From: Kishan Kumar Date: Wed, 16 Nov 2022 12:01:06 +0530 Subject: [PATCH] config added for cache (#4367) --- Dockerfile | 3 ++- settings.gradle | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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'