Files
unos/.gitea/workflows/watchdog-build.yaml
T
usbharu 295fb4b88e
/ build-tool (pull_request) Has been skipped
/ build-angular (pull_request) Has been skipped
/ build-docker-image (pull_request) Successful in 38s
watchdog-go dockerを使わずに配布するように
2024-03-14 12:59:26 +09:00

31 lines
830 B
YAML

on:
pull_request:
types:
- labeled
- opened
- synchronize
- closed
workflow_dispatch:
permissions:
pull-requests: read
jobs:
build-docker-image:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
defaults:
run:
working-directory: ./watchdog-go
if: contains(github.event.pull_request.labels.*.name,'watchdog-go')
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
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