Skip to content

Commit cde8728

Browse files
committed
Revert "Push Gradle Cache from GHA (#2597)"
9c4756f
1 parent 3f3f4b2 commit cde8728

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ jobs:
2323
${{ runner.os }}-gradle-home-testmatrix-
2424
${{ runner.os }}-gradle-home-
2525
- id: set-matrix
26-
env:
27-
# Since we override the tests executor,
28-
# we should not push empty results to the cache
29-
READ_ONLY_REMOTE_GRADLE_CACHE: true
3026
run: |
3127
TASKS=$(./gradlew --no-daemon --parallel -q testMatrix)
3228
echo $TASKS

settings.gradle

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,21 @@ buildscript {
55
}
66
}
77
dependencies {
8-
classpath "gradle.plugin.ch.myniva.gradle:s3-build-cache:0.10.0"
8+
classpath "gradle.plugin.ch.myniva.gradle:s3-build-cache:0.9.0"
99
classpath "com.gradle.enterprise:com.gradle.enterprise.gradle.plugin:3.2.1"
1010
}
11+
12+
configurations.classpath {
13+
resolutionStrategy {
14+
force 'com.amazonaws:aws-java-sdk-s3:1.11.582'
15+
}
16+
}
1117
}
1218

1319
apply plugin: 'ch.myniva.s3-build-cache'
1420
apply plugin: 'com.gradle.enterprise'
1521

16-
ext.isMasterBuild = false ||
17-
(System.getenv("GITHUB_REF") == "refs/heads/master") ||
18-
(System.getenv("BUILD_SOURCEBRANCHNAME") == "master")
22+
ext.isMasterBuild = (System.getenv("CIRCLE_BRANCH") ?: System.getenv("BUILD_SOURCEBRANCHNAME")) == "master"
1923

2024
buildCache {
2125
local {
@@ -27,7 +31,7 @@ buildCache {
2731
region = 'fra1'
2832
bucket = 'testcontainers'
2933
path = 'cache'
30-
push = !(System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE") || !isMasterBuild)
34+
push = isMasterBuild
3135
headers = [
3236
'x-amz-acl': 'public-read'
3337
]

0 commit comments

Comments
 (0)