From 4f6edb0c5ae2367aaf40c26f1bc49cafa22ee9da Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Tue, 19 Mar 2024 14:56:04 +0900 Subject: [PATCH] =?UTF-8?q?watchdob-bell:=20ci=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/watchdob-bell-build.yaml | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/watchdob-bell-build.yaml diff --git a/.gitea/workflows/watchdob-bell-build.yaml b/.gitea/workflows/watchdob-bell-build.yaml new file mode 100644 index 0000000..b3e3411 --- /dev/null +++ b/.gitea/workflows/watchdob-bell-build.yaml @@ -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 \ No newline at end of file