watchdob-bell: ciを追加
/ build-tool (pull_request) Has been skipped Details
/ build-angular (pull_request) Has been skipped Details
/ build-watchdog-be (pull_request) Has been skipped Details
/ build-docker-image (pull_request) Has been skipped Details

This commit is contained in:
usbharu 2024-03-19 14:56:04 +09:00
parent 4915045f54
commit 4f6edb0c5a
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
on:
pull_request:
types:
- labeled
- opened
- synchronize
- closed
workflow_dispatch:
permissions:
pull-requests: read
jobs:
build-watchdog-be:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
defaults:
run:
working-directory: ./watchdog-bell
if: contains(github.event.pull_request.labels.*.name,'watchdog-bell')
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '21'
- uses: gradle/actions/setup-gradle@v3
- run: ./gradlew jibBuildTar
if: github.event.pull_request.merged == false
- run: ./gradlew jib -Djib.to.image=git.usbharu.dev/usbharu/watchdog-bell -Djib.to.auth.username=usbharu -Djib.to.auth.password=${{ secrets.DEPLOY_TOKEN }}
if: github.event.pull_request.merged == true