Skip to content

Commit

Permalink
Merge pull request #18 from project-tsurugi/ci-prepare-public-2
Browse files Browse the repository at this point in the history
Modify repository structure for preparing public - 2nd
  • Loading branch information
akirakw authored Sep 25, 2023
2 parents bc401df + 61fd17a commit 063e228
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,16 @@ on:

jobs:
Build:
runs-on: [self-hosted, docker]
runs-on: ubuntu-latest
permissions:
checks: write
timeout-minutes: 30
container:
image: ghcr.io/project-tsurugi/oltp-sandbox:latest
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }}
volumes:
- ${{ vars.gradle_cache_dir }}:/root/.gradle
defaults:
run:
shell: bash
working-directory: java/cost-accounting-benchmark
env:
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
GPR_USER: ${{ github.repository_owner }}
GPR_KEY: ${{ secrets.GHCR_PAT }}

steps:
- name: Setup_Java
Expand Down
12 changes: 2 additions & 10 deletions java/cost-accounting-benchmark/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,16 @@ if (hasProperty('mavenLocal')) {
} else {
repositories {
maven {
url 'https://maven.pkg.github.com/project-tsurugi/*'
url 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
content {
includeGroupByRegex 'com\\.tsurugidb.*'
}
credentials {
username findProperty('gpr.user') ?: System.getenv('GPR_USER')
password findProperty('gpr.key') ?: System.getenv('GPR_KEY')
}
}
}
}

repositories {
mavenCentral {
content {
excludeGroupByRegex 'com\\.tsurugidb.*'
}
}
mavenCentral()
}

configurations.all {
Expand Down

0 comments on commit 063e228

Please sign in to comment.