ci: disable BuildKit to fix registry-mirror HTTPS bug in Docker 24
CI/CD / build-and-push (push) Failing after 5m14s
CI/CD / build-and-push (push) Failing after 5m14s
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 <noreply@anthropic.com>
This commit is contained in:
@@ -27,10 +27,12 @@ jobs:
|
|||||||
run: echo "${{ secrets.CI_TOKEN }}" | docker login git.chemavx.xyz -u chemavx --password-stdin
|
run: echo "${{ secrets.CI_TOKEN }}" | docker login git.chemavx.xyz -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 git.chemavx.xyz/chemavx/polymarket-bot:buildcache || true
|
||||||
docker build \
|
docker build \
|
||||||
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
|
||||||
--cache-from git.chemavx.xyz/chemavx/polymarket-bot:buildcache \
|
--cache-from git.chemavx.xyz/chemavx/polymarket-bot:buildcache \
|
||||||
-t git.chemavx.xyz/chemavx/polymarket-bot:${TAG} \
|
-t git.chemavx.xyz/chemavx/polymarket-bot:${TAG} \
|
||||||
-t git.chemavx.xyz/chemavx/polymarket-bot:buildcache \
|
-t git.chemavx.xyz/chemavx/polymarket-bot:buildcache \
|
||||||
@@ -39,10 +41,12 @@ jobs:
|
|||||||
docker push git.chemavx.xyz/chemavx/polymarket-bot:buildcache
|
docker push git.chemavx.xyz/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 git.chemavx.xyz/chemavx/polymarket-bot-api:buildcache || true
|
||||||
docker build \
|
docker build \
|
||||||
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
|
||||||
--cache-from git.chemavx.xyz/chemavx/polymarket-bot-api:buildcache \
|
--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:${TAG} \
|
||||||
-t git.chemavx.xyz/chemavx/polymarket-bot-api:buildcache \
|
-t git.chemavx.xyz/chemavx/polymarket-bot-api:buildcache \
|
||||||
@@ -51,10 +55,12 @@ jobs:
|
|||||||
docker push git.chemavx.xyz/chemavx/polymarket-bot-api:buildcache
|
docker push git.chemavx.xyz/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 git.chemavx.xyz/chemavx/polymarket-bot-dashboard:buildcache || true
|
||||||
docker build \
|
docker build \
|
||||||
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
|
||||||
--cache-from git.chemavx.xyz/chemavx/polymarket-bot-dashboard:buildcache \
|
--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:${TAG} \
|
||||||
-t git.chemavx.xyz/chemavx/polymarket-bot-dashboard:buildcache \
|
-t git.chemavx.xyz/chemavx/polymarket-bot-dashboard:buildcache \
|
||||||
|
|||||||
Reference in New Issue
Block a user