From cecbc3e9ee97f6139886a3cc8f56acb4581fd796 Mon Sep 17 00:00:00 2001 From: chemavx Date: Wed, 22 Apr 2026 19:23:30 +0000 Subject: [PATCH] ci: re-enable BuildKit with buildkitd.toml for OCI registry compatibility Legacy builder (DOCKER_BUILDKIT=0) cannot handle OCI image indexes from registry-cache, causing fallback to Docker Hub which is unreachable. BuildKit sends proper OCI Accept headers and reads buildkitd.toml to use HTTP for both the registry-cache mirror and internal Gitea registry. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/ci.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c1bbee1..7a12554 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -27,12 +27,10 @@ jobs: run: echo "${{ secrets.CI_TOKEN }}" | docker login gitea.gitea.svc.cluster.local:3000 -u chemavx --password-stdin - name: Build and push bot image - env: - DOCKER_BUILDKIT: "0" run: | TAG=${{ steps.tag.outputs.TAG }} - docker pull gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot:buildcache || true docker build \ + --build-arg BUILDKIT_INLINE_CACHE=1 \ --cache-from gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot:buildcache \ -t gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot:${TAG} \ -t gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot:buildcache \ @@ -41,12 +39,10 @@ jobs: docker push gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot:buildcache - name: Build and push API image - env: - DOCKER_BUILDKIT: "0" run: | TAG=${{ steps.tag.outputs.TAG }} - docker pull gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-api:buildcache || true docker build \ + --build-arg BUILDKIT_INLINE_CACHE=1 \ --cache-from gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-api:buildcache \ -t gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-api:${TAG} \ -t gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-api:buildcache \ @@ -55,12 +51,10 @@ jobs: docker push gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-api:buildcache - name: Build and push dashboard image - env: - DOCKER_BUILDKIT: "0" run: | TAG=${{ steps.tag.outputs.TAG }} - docker pull gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-dashboard:buildcache || true docker build \ + --build-arg BUILDKIT_INLINE_CACHE=1 \ --cache-from gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-dashboard:buildcache \ -t gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-dashboard:${TAG} \ -t gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-dashboard:buildcache \