ci: re-enable BuildKit with buildkitd.toml for OCI registry compatibility
CI/CD / build-and-push (push) Failing after 51s
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:
@@ -27,12 +27,10 @@ jobs:
|
|||||||
run: echo "${{ secrets.CI_TOKEN }}" | docker login gitea.gitea.svc.cluster.local:3000 -u chemavx --password-stdin
|
run: echo "${{ secrets.CI_TOKEN }}" | docker login gitea.gitea.svc.cluster.local:3000 -u chemavx --password-stdin
|
||||||
|
|
||||||
- name: Build and push bot image
|
- name: Build and push bot image
|
||||||
env:
|
|
||||||
DOCKER_BUILDKIT: "0"
|
|
||||||
run: |
|
run: |
|
||||||
TAG=${{ steps.tag.outputs.TAG }}
|
TAG=${{ steps.tag.outputs.TAG }}
|
||||||
docker pull gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot:buildcache || true
|
|
||||||
docker build \
|
docker build \
|
||||||
|
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
||||||
--cache-from gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot:buildcache \
|
--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:${TAG} \
|
||||||
-t gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot:buildcache \
|
-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
|
docker push gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot:buildcache
|
||||||
|
|
||||||
- name: Build and push API image
|
- name: Build and push API image
|
||||||
env:
|
|
||||||
DOCKER_BUILDKIT: "0"
|
|
||||||
run: |
|
run: |
|
||||||
TAG=${{ steps.tag.outputs.TAG }}
|
TAG=${{ steps.tag.outputs.TAG }}
|
||||||
docker pull gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-api:buildcache || true
|
|
||||||
docker build \
|
docker build \
|
||||||
|
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
||||||
--cache-from gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-api:buildcache \
|
--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:${TAG} \
|
||||||
-t gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-api:buildcache \
|
-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
|
docker push gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-api:buildcache
|
||||||
|
|
||||||
- name: Build and push dashboard image
|
- name: Build and push dashboard image
|
||||||
env:
|
|
||||||
DOCKER_BUILDKIT: "0"
|
|
||||||
run: |
|
run: |
|
||||||
TAG=${{ steps.tag.outputs.TAG }}
|
TAG=${{ steps.tag.outputs.TAG }}
|
||||||
docker pull gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-dashboard:buildcache || true
|
|
||||||
docker build \
|
docker build \
|
||||||
|
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
||||||
--cache-from gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-dashboard:buildcache \
|
--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:${TAG} \
|
||||||
-t gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-dashboard:buildcache \
|
-t gitea.gitea.svc.cluster.local:3000/chemavx/polymarket-bot-dashboard:buildcache \
|
||||||
|
|||||||
Reference in New Issue
Block a user