watcher/.gitea/workflows/build-push.yml

25 lines
796 B
YAML
Raw Normal View History

2024-04-12 14:07:00 +08:00
name: Build image
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
2024-07-26 15:42:18 +08:00
- uses: http://192.168.31.55:13000/timerzz/setup-go@v4
2024-05-23 11:22:55 +08:00
env:
HTTPS_PROXY: http://192.168.31.55:10809
2024-05-23 11:19:43 +08:00
with:
go-version: '1.22.x'
2024-07-26 15:42:18 +08:00
- uses: http://192.168.31.55:13000/timerzz/checkout@v4
- uses: http://192.168.31.55:13000/timerzz/setup-ko@v0.6
2024-05-23 11:25:26 +08:00
with:
version: v0.15.4
2024-05-23 11:19:43 +08:00
env:
2024-05-23 12:11:55 +08:00
KO_DOCKER_REPO: 192.168.31.55:5000/kedaya/watcher
2024-07-26 15:26:52 +08:00
HTTP_PROXY: http://192.168.31.55:10809
HTTPS_PROXY: http://192.168.31.55:10809
2024-05-23 11:19:43 +08:00
- run: ko build --bare ./main
2024-07-26 15:47:50 +08:00
env:
KO_DOCKER_REPO: 192.168.31.55:5000/kedaya/watcher
HTTP_PROXY: http://192.168.31.55:10809
HTTPS_PROXY: http://192.168.31.55:10809