watchdog-go dockerを使わずに配布するように
/ build-tool (pull_request) Has been skipped Details
/ build-angular (pull_request) Has been skipped Details
/ build-docker-image (pull_request) Successful in 38s Details

This commit is contained in:
usbharu 2024-03-14 12:59:26 +09:00
parent 17ffde4c04
commit 295fb4b88e
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 5 additions and 11 deletions

View File

@ -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 }}
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