From 295fb4b88e69c14805393701508fe6b5945c035f Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Thu, 14 Mar 2024 12:59:26 +0900 Subject: [PATCH] =?UTF-8?q?watchdog-go=20docker=E3=82=92=E4=BD=BF=E3=82=8F?= =?UTF-8?q?=E3=81=9A=E3=81=AB=E9=85=8D=E5=B8=83=E3=81=99=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/watchdog-build.yaml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/watchdog-build.yaml b/.gitea/workflows/watchdog-build.yaml index 9fdfc9e..27b8b09 100644 --- a/.gitea/workflows/watchdog-build.yaml +++ b/.gitea/workflows/watchdog-build.yaml @@ -23,15 +23,9 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: https://github.com/docker/setup-buildx-action@v3 - - uses: https://github.com/docker/login-action@v3 + - uses: actions/setup-go@v4 with: - registry: git.usbharu.dev - username: usbharu - password: ${{ secrets.DEPLOY_TOKEN }} - - uses: https://github.com/docker/build-push-action@v5 - with: - context: ./watchdog-go - - tags: git.usbharu.dev/usbharu/watchdog-go:latest,git.usbharu.dev/usbharu/watchdog-go:${{ github.sha }} - push: ${{ github.event.pull_request.merged == true }} \ No newline at end of file + go-version: "^1.20" + - run: go build -o watchdog-go -ldflags="-s -w" -trimpath + - run: curl --user usbharu:${{ secrets.DEPLOY_TOKEN }} --upload-file watchdog-go https://git.usbharu.dev/api/packages/usbharu/generic/watchdog-go/${{ github.sha }}/watchdog-go + if: github.event.pull_request.merged == true \ No newline at end of file