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

This commit is contained in:
Ashwin Kumar 2026-04-10 21:30:26 +02:00
parent 161c07ddbf
commit dc56f16a4e

View file

@ -4,24 +4,20 @@ when:
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-admin-solid
dockerfile: Dockerfile.simple
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-admin-solid:${CI_COMMIT_SHA}
--destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid:latest
--destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid:high-performance-latest
--cache=true
--cache-repo docker-registry.registry.svc.cluster.local:5000/nxtgauge-admin-solid-cache
--insecure
--insecure-pull
--skip-tls-verify
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