2024-06-14 16:36:33 +08:00
|
|
|
name: Build image
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-06-14 16:39:45 +08:00
|
|
|
- uses: https://gitea.timerzz.com/timerzz/setup-go@v4
|
2024-06-14 16:36:33 +08:00
|
|
|
env:
|
|
|
|
HTTPS_PROXY: http://192.168.31.55:10809
|
|
|
|
with:
|
|
|
|
go-version: '1.22.x'
|
2024-06-14 16:39:45 +08:00
|
|
|
- uses: https://gitea.timerzz.com/timerzz/checkout@v4
|
|
|
|
- uses: https://gitea.timerzz.com/timerzz/setup-ko@v0.6
|
2024-06-14 16:36:33 +08:00
|
|
|
with:
|
|
|
|
version: v0.15.4
|
|
|
|
env:
|
|
|
|
KO_DOCKER_REPO: 192.168.31.55:5000/kedaya/cn-coach-spider
|
|
|
|
HTTP_PROXY: http://192.168.31.55:10809
|
|
|
|
HTTPS_PROXY: http://192.168.31.55:10809
|
2024-06-14 17:45:51 +08:00
|
|
|
- run: ko build --bare ./cmd
|
|
|
|
env:
|
|
|
|
KO_DOCKER_REPO: 192.168.31.55:5000/kedaya/cn-coach-spider
|
|
|
|
HTTP_PROXY: http://192.168.31.55:10809
|
|
|
|
HTTPS_PROXY: http://192.168.31.55:10809
|