From 3bd8d4b105ade91d21cf64f11d5a26c94502ca73 Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Date: Sat, 11 Apr 2026 00:38:04 +0200 Subject: [PATCH] fix(ci): restore working buildx settings pattern with registry push creds --- .woodpecker.yml | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 50301cd..cece823 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -5,16 +5,29 @@ when: steps: - name: build-and-push image: woodpeckerci/plugin-docker-buildx:5.0.0 - environment: - REGISTRY_HOSTPORT: docker-registry.registry.svc.cluster.local:5000 - REGISTRY_USERNAME: - from_secret: DOCKERHUB_USERNAME - REGISTRY_PASSWORD: - from_secret: DOCKERHUB_TOKEN - commands: - - 'test -n "${REGISTRY_USERNAME}" && test -n "${REGISTRY_PASSWORD}" || (echo "Missing one or more required secrets: DOCKERHUB_USERNAME, DOCKERHUB_TOKEN" && exit 1)' - - echo "${REGISTRY_PASSWORD}" | docker login "${REGISTRY_HOSTPORT}" -u "${REGISTRY_USERNAME}" --password-stdin - - docker build -f Dockerfile.simple -t ${REGISTRY_HOSTPORT}/nxtgauge-frontend-solid:${CI_COMMIT_SHA} -t ${REGISTRY_HOSTPORT}/nxtgauge-frontend-solid:latest -t ${REGISTRY_HOSTPORT}/nxtgauge-frontend-solid:high-performance-latest . - - docker push ${REGISTRY_HOSTPORT}/nxtgauge-frontend-solid:${CI_COMMIT_SHA} - - docker push ${REGISTRY_HOSTPORT}/nxtgauge-frontend-solid:latest - - docker push ${REGISTRY_HOSTPORT}/nxtgauge-frontend-solid:high-performance-latest + 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 + logins: + - registry: https://index.docker.io/v1/ + username: + from_secret: DOCKERHUB_USERNAME + password: + from_secret: DOCKERHUB_TOKEN + - registry: ghcr.io + username: + from_secret: GHCR_USERNAME + password: + from_secret: GHCR_TOKEN + username: + from_secret: REGISTRY_USERNAME + password: + from_secret: REGISTRY_PASSWORD + platforms: linux/amd64 + no_cache: true