Skip to content

Commit

Permalink
use access token
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhee17 committed Aug 24, 2023
1 parent d643e4f commit d907eb4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/actions_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ env:
GH_TOKEN: ${{ github.token }}
RUN_ID: ${{ github.run_id }}
PR_NUMBER: ${{ github.event.pull_request.number }}
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}

jobs:
build:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/gradle-enterprise-postjob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ env:
LC_ALL: "en_US.UTF-8"
BUILD_JDK_VERSION: "19"
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
RUN_ID: ${{ github.event.workflow_run.id }}
COMMIT_SHA: ${{ github.event.workflow_run.head_sha }}
# Used by Octokit
Expand Down
12 changes: 4 additions & 8 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ plugins {

import com.gradle.scan.plugin.PublishedBuildScan

def isCi = System.getenv("CI") != null

gradleEnterprise {
server = "https://ge.armeria.dev"
buildScan {
def isCi = System.getenv("CI") != null
publishIfAuthenticated()
publishAlways()
uploadInBackground = !isCi
Expand Down Expand Up @@ -59,13 +60,8 @@ gradleEnterprise {
}

buildCache {
remote(HttpBuildCache) {
url = 'https://ge.armeria.dev/cache/armeria/'
credentials { creds ->
creds.username = System.getenv('GRADLE_ENTERPRISE_CACHE_USERNAME')
creds.password = System.getenv('GRADLE_ENTERPRISE_CACHE_PASSWORD')
}
push = System.getenv('CI') != null
remote(gradleEnterprise.buildCache) {
push = isCi
}
}

Expand Down

0 comments on commit d907eb4

Please sign in to comment.