Skip to content

Commit

Permalink
Use Develocity build cache configuration and access key authentication (
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerbertrand authored Jul 22, 2024
1 parent be5966e commit 7713224
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 23 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ permissions:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}

jobs:
core:
Expand Down
9 changes: 2 additions & 7 deletions examples/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,9 @@ buildCache {
local {
enabled = !isCI
}
remote(HttpBuildCache) {
push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE") && System.getenv("GRADLE_ENTERPRISE_CACHE_PASSWORD")
remote(develocity.buildCache) {
push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE") && System.getenv("DEVELOCITY_ACCESS_KEY")
enabled = true
url = 'https://ge.testcontainers.org/cache/'
credentials {
username = 'ci'
password = System.getenv("GRADLE_ENTERPRISE_CACHE_PASSWORD")
}
}
}

Expand Down
9 changes: 2 additions & 7 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,9 @@ buildCache {
local {
enabled = !isCI
}
remote(HttpBuildCache) {
push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE") && System.getenv("GRADLE_ENTERPRISE_CACHE_PASSWORD")
remote(develocity.buildCache) {
push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE") && System.getenv("DEVELOCITY_ACCESS_KEY")
enabled = true
url = 'https://ge.testcontainers.org/cache/'
credentials {
username = 'ci'
password = System.getenv("GRADLE_ENTERPRISE_CACHE_PASSWORD")
}
}
}

Expand Down
9 changes: 2 additions & 7 deletions smoke-test/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,9 @@ buildCache {
local {
enabled = !isCI
}
remote(HttpBuildCache) {
push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE") && System.getenv("GRADLE_ENTERPRISE_CACHE_PASSWORD")
remote(develocity.buildCache) {
push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE") && System.getenv("DEVELOCITY_ACCESS_KEY")
enabled = true
url = 'https://ge.testcontainers.org/cache/'
credentials {
username = 'ci'
password = System.getenv("GRADLE_ENTERPRISE_CACHE_PASSWORD")
}
}
}

Expand Down

0 comments on commit 7713224

Please sign in to comment.