watcher/.gitea/workflows/build-push.yml
timerzz ceaf4881e2
All checks were successful
Build image / build (push) Successful in 1m46s
feat 修改镜像仓库
2024-12-04 12:43:07 +08:00

27 lines
937 B
YAML

name: Build image
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: http://192.168.31.55:13000/timerzz/setup-go@v4
env:
HTTPS_PROXY: http://192.168.31.55:10809
with:
go-version: '1.22.x'
- uses: http://192.168.31.55:13000/timerzz/checkout@v4
- uses: http://192.168.31.55:13000/timerzz/setup-ko@v0.6
with:
version: v0.15.4
env:
KO_DOCKER_REPO: 192.168.31.55:5000/kedaya/watcher-v2
HTTP_PROXY: http://192.168.31.55:10809
HTTPS_PROXY: http://192.168.31.55:10809
NO_PROXY: 127.0.0.1,localhost,192.168.31.55,*.timerzz.com
- run: ko build --bare ./cmd
env:
KO_DOCKER_REPO: 192.168.31.55:5000/kedaya/watcher-v2
HTTP_PROXY: http://192.168.31.55:10809
HTTPS_PROXY: http://192.168.31.55:10809
NO_PROXY: 127.0.0.1,localhost,192.168.31.55,*.timerzz.com