Skip to content

Tsubakuro-CI-Publish #16

Tsubakuro-CI-Publish

Tsubakuro-CI-Publish #16

Workflow file for this run

name: Tsubakuro-CI-Publish
on:
workflow_dispatch:
workflow_call:
jobs:
Publish:
runs-on: [self-hosted, docker]
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
steps:
- id: Setup_Java
name: Setup_Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
- id: Checkout
name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.GHA_PAT }}
- id: Checkout_Actions
name: Checkout_Actions
uses: actions/checkout@v3
with:
repository: project-tsurugi/tsurugi-github-actions
path: .github/actions
ref: master
submodules: recursive
token: ${{ secrets.GHA_PAT }}
- id: Publish
name: Publish
if: contains(github.ref, '/heads/master')
run: |
./gradlew -i clean publish
env:
GPR_USER: ${{ github.repository_owner }}
GPR_KEY: ${{ secrets.GITHUB_TOKEN }}
- id: Notify_Slack
name: Notify_Slack
uses: ./.github/actions/tsurugi-slack-action
if: always() && (github.event.pull_request.draft == false) && (contains(github.ref, '/tags/') || contains(github.ref, '/pull/') || contains(github.ref, '/heads/master'))
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
kind: 'job-result'
channel: 'tsurugi-build'
status: ${{ job.status }}
step_context: ${{ toJson(steps) }}
username: ${{ github.workflow }}