us-coach-spider/.gitea/workflows/build-push.yml
timerzz 318dc235bf
Some checks failed
Build image / build (push) Failing after 2m38s
feat 修改版本为v2
2024-08-04 20:54:28 +08:00

24 lines
795 B
YAML

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