2024-09-04 23:04:04 +08:00
|
|
|
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:
|
2024-09-13 21:46:52 +08:00
|
|
|
KO_DOCKER_REPO: 192.168.31.55:5000/kedaya/profi-rate
|
2024-09-04 23:04:04 +08:00
|
|
|
HTTP_PROXY: http://192.168.31.55:10809
|
|
|
|
HTTPS_PROXY: http://192.168.31.55:10809
|
|
|
|
- run: ko build --bare ./cmd
|
|
|
|
env:
|
2024-09-13 21:46:52 +08:00
|
|
|
KO_DOCKER_REPO: 192.168.31.55:5000/kedaya/profit-rate
|
2024-09-04 23:04:04 +08:00
|
|
|
HTTP_PROXY: http://192.168.31.55:10809
|
|
|
|
HTTPS_PROXY: http://192.168.31.55:10809
|