chore(ci): revert to buildx plugin with local registry auth

This commit is contained in:
Ashwin Kumar 2026-04-10 21:30:27 +02:00
parent 33375eeeac
commit 04a3087c7c

View file

@ -25,25 +25,22 @@ matrix:
steps:
- name: build-and-push
image: gcr.io/kaniko-project/executor:v1.23.2-debug
environment:
REGISTRY_USERNAME:
image: woodpeckerci/plugin-docker-buildx:5.0.0
settings:
insecure: true
registry: docker-registry.registry.svc.cluster.local:5000
repo: docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}
dockerfile: Dockerfile.simple
build_args:
- SERVICE_NAME=${SERVICE}
tags:
- ${CI_COMMIT_SHA}
- latest
- high-performance-latest
username:
from_secret: REGISTRY_USERNAME
REGISTRY_PASSWORD:
password:
from_secret: REGISTRY_PASSWORD
commands:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"docker-registry.registry.svc.cluster.local:5000\":{\"username\":\"${REGISTRY_USERNAME}\",\"password\":\"${REGISTRY_PASSWORD}\"}}}" > /kaniko/.docker/config.json
- >-
/kaniko/executor
--context .
--dockerfile Dockerfile.simple
--destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:${CI_COMMIT_SHA}
--destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:latest
--destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:high-performance-latest
--build-arg SERVICE_NAME=${SERVICE}
--cache=true
--cache-repo docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}-cache
--insecure
--insecure-pull
--skip-tls-verify
platforms: linux/amd64
cache_from: docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:cache
cache_to: docker-registry.registry.svc.cluster.local:5000/nxtgauge-rust-${SERVICE}:cache