File tree 2 files changed +3
-9
lines changed 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 25
25
uses : gradle/gradle-build-action@v3
26
26
env :
27
27
GRADLE_ENTERPRISE_ACCESS_KEY : ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
28
- GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER : ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
29
- GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY : ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
30
28
with :
31
29
arguments : build -Dgeb.env=chromeHeadless
32
30
- name : Publish to repo.grails.org
Original file line number Diff line number Diff line change @@ -17,14 +17,10 @@ gradleEnterprise {
17
17
18
18
buildCache {
19
19
local { enabled = System . getenv(' CI' ) != ' true' }
20
- remote(HttpBuildCache ) {
21
- push = System . getenv(' CI' ) == ' true'
20
+ remote(gradleEnterprise. buildCache) {
21
+ def isAuthenticated = System . getenv(' GRADLE_ENTERPRISE_ACCESS_KEY' )
22
+ push = System . getenv(' CI' ) == ' true' && isAuthenticated
22
23
enabled = true
23
- url = ' https://ge.grails.org/cache/'
24
- credentials {
25
- username = System . getenv(' GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER' )
26
- password = System . getenv(' GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY' )
27
- }
28
24
}}
29
25
30
26
rootProject. name = ' cache'
You can’t perform that action at this time.
0 commit comments