ci: migrate from kaniko to buildkit/buildx with registry cache
CI/CD / build-and-push (push) Failing after 15m1s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chemavx
2026-04-22 16:57:40 +00:00
parent adf2917cda
commit e50f783e04
+36 -25
View File
@@ -23,41 +23,52 @@ jobs:
id: tag id: tag
run: echo "TAG=${GITHUB_SHA::8}" >> $GITHUB_OUTPUT run: echo "TAG=${GITHUB_SHA::8}" >> $GITHUB_OUTPUT
- name: Build and push bot image - name: Log in to registry
uses: aevea/action-kaniko@master uses: docker/login-action@v3
with: with:
registry: git.chemavx.xyz registry: git.chemavx.xyz
username: chemavx username: chemavx
password: ${{ secrets.CI_TOKEN }} password: ${{ secrets.CI_TOKEN }}
image: chemavx/polymarket-bot
tag: ${{ steps.tag.outputs.TAG }} - name: Set up Docker Buildx
path: . uses: docker/setup-buildx-action@v3
build_file: Dockerfile with:
extra_args: --insecure --skip-tls-verify --registry-mirror=mirror.gcr.io driver: docker-container
driver-opts: network=host
buildkitd-config-inline: |
[registry."git.chemavx.xyz"]
http = true
insecure = true
- name: Build and push bot image
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile
push: true
tags: git.chemavx.xyz/chemavx/polymarket-bot:${{ steps.tag.outputs.TAG }}
cache-from: type=registry,ref=git.chemavx.xyz/chemavx/polymarket-bot:buildcache
cache-to: type=registry,ref=git.chemavx.xyz/chemavx/polymarket-bot:buildcache,mode=max
- name: Build and push API image - name: Build and push API image
uses: aevea/action-kaniko@master uses: docker/build-push-action@v3
with: with:
registry: git.chemavx.xyz context: .
username: chemavx file: Dockerfile.api
password: ${{ secrets.CI_TOKEN }} push: true
image: chemavx/polymarket-bot-api tags: git.chemavx.xyz/chemavx/polymarket-bot-api:${{ steps.tag.outputs.TAG }}
tag: ${{ steps.tag.outputs.TAG }} cache-from: type=registry,ref=git.chemavx.xyz/chemavx/polymarket-bot-api:buildcache
path: . cache-to: type=registry,ref=git.chemavx.xyz/chemavx/polymarket-bot-api:buildcache,mode=max
build_file: Dockerfile.api
extra_args: --insecure --skip-tls-verify --registry-mirror=mirror.gcr.io
- name: Build and push dashboard image - name: Build and push dashboard image
uses: aevea/action-kaniko@master uses: docker/build-push-action@v3
with: with:
registry: git.chemavx.xyz context: dashboard
username: chemavx file: dashboard/Dockerfile
password: ${{ secrets.CI_TOKEN }} push: true
image: chemavx/polymarket-bot-dashboard tags: git.chemavx.xyz/chemavx/polymarket-bot-dashboard:${{ steps.tag.outputs.TAG }}
tag: ${{ steps.tag.outputs.TAG }} cache-from: type=registry,ref=git.chemavx.xyz/chemavx/polymarket-bot-dashboard:buildcache
path: dashboard cache-to: type=registry,ref=git.chemavx.xyz/chemavx/polymarket-bot-dashboard:buildcache,mode=max
build_file: Dockerfile
extra_args: --insecure --skip-tls-verify --registry-mirror=mirror.gcr.io
- name: Update k8s manifests - name: Update k8s manifests
run: | run: |