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 867035be71
commit 808fe4a908

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-frontend-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-frontend-solid:${CI_COMMIT_SHA}
--destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-frontend-solid:latest
--destination docker-registry.registry.svc.cluster.local:5000/nxtgauge-frontend-solid:high-performance-latest
--cache=true
--cache-repo docker-registry.registry.svc.cluster.local:5000/nxtgauge-frontend-solid-cache
--insecure
--insecure-pull
--skip-tls-verify
platforms: linux/amd64
cache_from: docker-registry.registry.svc.cluster.local:5000/nxtgauge-frontend-solid:cache
cache_to: docker-registry.registry.svc.cluster.local:5000/nxtgauge-frontend-solid:cache