watchdog-go dockerを使わずに配布するように
This commit is contained in:
parent
17ffde4c04
commit
295fb4b88e
|
@ -23,15 +23,9 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: https://github.com/docker/setup-buildx-action@v3
|
- uses: actions/setup-go@v4
|
||||||
- uses: https://github.com/docker/login-action@v3
|
|
||||||
with:
|
with:
|
||||||
registry: git.usbharu.dev
|
go-version: "^1.20"
|
||||||
username: usbharu
|
- run: go build -o watchdog-go -ldflags="-s -w" -trimpath
|
||||||
password: ${{ secrets.DEPLOY_TOKEN }}
|
- 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
|
||||||
- uses: https://github.com/docker/build-push-action@v5
|
if: github.event.pull_request.merged == true
|
||||||
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 }}
|
|
Loading…
Reference in New Issue