From 808fe4a908534c6ad07ae076d44143518905022b Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Date: Fri, 10 Apr 2026 21:30:27 +0200 Subject: [PATCH] chore(ci): revert to buildx plugin with local registry auth --- .woodpecker.yml | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 3300afc..ab4cde1 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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