Skip to content

Commit

Permalink
Modify CI to use hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
akirakw committed Sep 24, 2023
1 parent 6688c27 commit 8ebe247
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,16 @@ on: [push, pull_request, workflow_dispatch]

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:ubuntu-22.04
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }}
volumes:
- ${{ vars.gradle_cache_dir }}:/root/.gradle
defaults:
run:
shell: bash
env:
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

services:
tsurugi:
image: ghcr.io/project-tsurugi/tsurugi:latest
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }}

steps:
- name: Setup_Java
uses: actions/setup-java@v3
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/ci-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,10 @@ concurrency: ${{ github.workflow }}

jobs:
Publish:
runs-on: [self-hosted, docker]
runs-on: ubuntu-latest
permissions:
contents: write
timeout-minutes: 30
container:
image: ghcr.io/project-tsurugi/oltp-sandbox:ubuntu-22.04
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }}
volumes:
- ${{ vars.gradle_cache_dir }}:/root/.gradle
defaults:
run:
shell: bash
Expand Down

0 comments on commit 8ebe247

Please sign in to comment.