From a4c04dedd7a45658ee7a01c8d5005415d4020da9 Mon Sep 17 00:00:00 2001 From: chemavx Date: Wed, 22 Apr 2026 17:42:05 +0000 Subject: [PATCH] ci: disable BuildKit to fix registry-mirror HTTPS bug in Docker 24 Docker 24's embedded BuildKit ignores the http:// prefix in registry-mirrors and always attempts HTTPS, breaking the local pull-through cache. DOCKER_BUILDKIT=0 uses the legacy builder which respects the daemon mirror config correctly. Cache still works via --cache-from + buildcache tag. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 6fdfed2..0c2a2d8 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -27,10 +27,12 @@ jobs: run: echo "${{ secrets.CI_TOKEN }}" | docker login git.chemavx.xyz -u chemavx --password-stdin - name: Build and push bot image + env: + DOCKER_BUILDKIT: "0" run: | TAG=${{ steps.tag.outputs.TAG }} + docker pull git.chemavx.xyz/chemavx/polymarket-bot:buildcache || true docker build \ - --build-arg BUILDKIT_INLINE_CACHE=1 \ --cache-from git.chemavx.xyz/chemavx/polymarket-bot:buildcache \ -t git.chemavx.xyz/chemavx/polymarket-bot:${TAG} \ -t git.chemavx.xyz/chemavx/polymarket-bot:buildcache \ @@ -39,10 +41,12 @@ jobs: docker push git.chemavx.xyz/chemavx/polymarket-bot:buildcache - name: Build and push API image + env: + DOCKER_BUILDKIT: "0" run: | TAG=${{ steps.tag.outputs.TAG }} + docker pull git.chemavx.xyz/chemavx/polymarket-bot-api:buildcache || true docker build \ - --build-arg BUILDKIT_INLINE_CACHE=1 \ --cache-from git.chemavx.xyz/chemavx/polymarket-bot-api:buildcache \ -t git.chemavx.xyz/chemavx/polymarket-bot-api:${TAG} \ -t git.chemavx.xyz/chemavx/polymarket-bot-api:buildcache \ @@ -51,10 +55,12 @@ jobs: docker push git.chemavx.xyz/chemavx/polymarket-bot-api:buildcache - name: Build and push dashboard image + env: + DOCKER_BUILDKIT: "0" run: | TAG=${{ steps.tag.outputs.TAG }} + docker pull git.chemavx.xyz/chemavx/polymarket-bot-dashboard:buildcache || true docker build \ - --build-arg BUILDKIT_INLINE_CACHE=1 \ --cache-from git.chemavx.xyz/chemavx/polymarket-bot-dashboard:buildcache \ -t git.chemavx.xyz/chemavx/polymarket-bot-dashboard:${TAG} \ -t git.chemavx.xyz/chemavx/polymarket-bot-dashboard:buildcache \