Skip to content

Commit

Permalink
Set remote build cache to push only if authenticated (#7924)
Browse files Browse the repository at this point in the history
Co-authored-by: Eddú Meléndez Gonzales <eddu.melendez@gmail.com>
  • Loading branch information
ribafish and eddumelendez committed Dec 13, 2023
1 parent da2005b commit 10ecdce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ buildCache {
enabled = !isCI
}
remote(HttpBuildCache) {
push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE")
push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE") && System.getenv("GRADLE_ENTERPRISE_CACHE_PASSWORD")
enabled = true
url = 'https://ge.testcontainers.org/cache/'
credentials {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ buildCache {
enabled = !isCI
}
remote(HttpBuildCache) {
push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE")
push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE") && System.getenv("GRADLE_ENTERPRISE_CACHE_PASSWORD")
enabled = true
url = 'https://ge.testcontainers.org/cache/'
credentials {
Expand Down
2 changes: 1 addition & 1 deletion smoke-test/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ buildCache {
enabled = !isCI
}
remote(HttpBuildCache) {
push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE")
push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE") && System.getenv("GRADLE_ENTERPRISE_CACHE_PASSWORD")
enabled = true
url = 'https://ge.testcontainers.org/cache/'
credentials {
Expand Down

0 comments on commit 10ecdce

Please sign in to comment.