ci: re-enable BuildKit with buildkitd.toml for OCI registry compatibility
CI/CD / build-and-push (push) Failing after 51s

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 <noreply@anthropic.com>
This commit is contained in:
chemavx
2026-04-22 19:23:30 +00:00
parent 8b76802676
commit cecbc3e9ee
+3 -9
View File
@@ -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 \