fix(ci): switch to daemonless kaniko builds

This commit is contained in:
Ashwin Kumar 2026-04-10 20:34:18 +02:00
parent 130145ebc5
commit 2bfb0774ee

View file

@ -2,34 +2,19 @@ when:
branch: [main, high-performance] branch: [main, high-performance]
event: push event: push
services:
- name: docker
image: docker:24-dind
privileged: true
environment:
DOCKER_TLS_CERTDIR: ""
steps: steps:
- name: build-and-push - name: build-and-push
image: woodpeckerci/plugin-docker-buildx:5.0.0 image: gcr.io/kaniko-project/executor:v1.23.2-debug
environment: commands:
DOCKER_HOST: tcp://docker:2375 - >-
DOCKER_TLS_CERTDIR: "" /kaniko/executor
settings: --context .
insecure: true --dockerfile Dockerfile.simple
registry: docker-registry.registry.svc.cluster.local:5000 --destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid:${CI_COMMIT_SHA}
repo: docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid --destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid:latest
dockerfile: Dockerfile.simple --destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid:high-performance-latest
tags: --cache=true
- ${CI_COMMIT_SHA} --cache-repo docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid-cache
- latest --insecure
- high-performance-latest --insecure-pull
logins: --skip-tls-verify
- registry: https://index.docker.io/v1/
username:
from_secret: DOCKERHUB_USERNAME
password:
from_secret: DOCKERHUB_TOKEN
platforms: linux/amd64
cache_from: docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid:cache
cache_to: docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid:cache