From d74521a76aea6c2ab73e7f109fc107caf7fdf250 Mon Sep 17 00:00:00 2001 From: necobot Date: Sat, 10 Oct 2026 23:38:17 +0800 Subject: [PATCH] ci: build and publish text-mosaic latest image --- .woodpecker/build-image.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .woodpecker/build-image.yaml diff --git a/.woodpecker/build-image.yaml b/.woodpecker/build-image.yaml new file mode 100644 index 0000000..2684f97 --- /dev/null +++ b/.woodpecker/build-image.yaml @@ -0,0 +1,32 @@ +labels: + platform: linux/amd64 + +when: + - event: push + branch: main + - event: manual + +steps: + build-and-push: + image: moby/buildkit:v0.28.1 + backend_options: + kubernetes: + resources: + requests: + cpu: "100m" + memory: "128Mi" + limits: + cpu: "1000m" + memory: "1Gi" + commands: + - >- + buildctl --addr tcp://buildkitd.mattuy-house.svc:1234 build + --frontend dockerfile.v0 + --local context=. + --local dockerfile=. + --opt build-arg:http_proxy=http://mihomo.mattuy-house.svc:7890 + --opt build-arg:https_proxy=http://mihomo.mattuy-house.svc:7890 + --opt build-arg:no_proxy=localhost,127.0.0.1,.mattuy-house.svc,.svc,.cluster.local,registry.mattuy.top,mirror.mattuy.top,io-lan.mattuy.top + --output type=image,"name=registry.mattuy.top/text-mosaic:${CI_COMMIT_SHA:0:7},registry.mattuy.top/text-mosaic:latest",push=true,registry.insecure=true + --export-cache type=s3,mode=max,bucket=buildcache,region=us-east-1,endpoint_url=https://io-lan.mattuy.top,use_path_style=true,name=text-mosaic + --import-cache type=s3,bucket=buildcache,region=us-east-1,endpoint_url=https://io-lan.mattuy.top,use_path_style=true,name=text-mosaic