watcher/.gitea/workflows/build-push.yml
timerzz 0edc7d8678
Some checks failed
Build image / build (push) Failing after 1m23s
feat 使用ko进行构建
2024-05-23 11:19:43 +08:00

15 lines
426 B
YAML

name: Build image
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: https://gitea.timerzz.com/timerzz/setup-go@v4
with:
go-version: '1.22.x'
- uses: https://gitea.timerzz.com/timerzz/checkout@v4
- uses: https://gitea.timerzz.com/timerzz/setup-ko@v0.6
env:
KO_DOCKER_REPO: registry.timerzz.com:20443/kedaya/watcher
- run: ko build --bare ./main