config added for cache (#4367)
This commit is contained in:
committed by
GitHub Enterprise
parent
ee1189bde7
commit
085874c770
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user