config added for cache (#4367)

This commit is contained in:
Kishan Kumar
2022-11-16 12:01:06 +05:30
committed by GitHub Enterprise
parent ee1189bde7
commit 085874c770
2 changed files with 8 additions and 2 deletions

View File

@@ -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

View File

@@ -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'