Skip to content

Commit

Permalink
don't use remote cache when executing builds with Dagger (#8038)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conor committed Aug 28, 2023
1 parent 51b565f commit a2c3eac
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,16 @@ gradleEnterprise {
ext.isCiServer = System.getenv().containsKey("CI")

buildCache {
remote(com.github.burrunan.s3cache.AwsS3BuildCache) {
region = 'us-east-2'
bucket = 'airbyte-buildcache'
prefix = 'cache/'
push = isCiServer
// Credentials will be taken from S3_BUILD_CACHE_... environment variables
// anonymous access will be used if environment variables are missing
// we use a different caching mechanism for Dagger builds
if (System.getenv("DAGGER") == null) {
remote(com.github.burrunan.s3cache.AwsS3BuildCache) {
region = 'us-east-2'
bucket = 'airbyte-buildcache'
prefix = 'cache/'
push = isCiServer
// Credentials will be taken from S3_BUILD_CACHE_... environment variables
// anonymous access will be used if environment variables are missing
}
}
}

Expand Down

0 comments on commit a2c3eac

Please sign in to comment.