From 83cacb8c62623c33c2855320c27026427acba2ea Mon Sep 17 00:00:00 2001 From: Tracewebstudio Dev Date: Fri, 17 Apr 2026 00:09:29 +0200 Subject: [PATCH] ci: use docker cli instead of kaniko - more reliable with registry configuration --- .woodpecker.yml | 80 +++++++++++++------------------------------------ 1 file changed, 20 insertions(+), 60 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index f8420ea..4d75918 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -5,51 +5,20 @@ when: concurrency: limit: 4 -matrix: - SERVICE: - - gateway - - users - - companies - - jobs - - leads - - job-seekers - - customers - - payments - - employees - - photographers - - makeup-artists - - tutors - - developers - - video-editors - - graphic-designers - - social-media-managers - - fitness-trainers - - catering-services - - ugc-content-creators - - cron - steps: - - name: build-and-push - image: registry.nxtgauge.com/kaniko:2.1.1 - settings: - registry: registry.nxtgauge.com - repo: nxtgauge-rust-${SERVICE} - dockerfile: Dockerfile.simple - build_args: - - SERVICE_NAME=${SERVICE} - tags: - - ${CI_COMMIT_SHA} - - latest - - high-performance-latest - username: + - name: login-and-push + image: docker:28-cli + environment: + REGISTRY_USERNAME: from_secret: REGISTRY_USERNAME - password: + REGISTRY_PASSWORD: from_secret: REGISTRY_PASSWORD - insecure: true - insecure_pull: true - skip_tls_verify: true - platforms: linux/amd64 - cache: false + SERVICE_NAME: + from_secret: SERVICE_NAME + commands: + - echo "${REGISTRY_PASSWORD}" | docker login registry.nxtgauge.com -u "${REGISTRY_USERNAME}" --password-stdin + - docker build -t registry.nxtgauge.com/nxtgauge-rust-${SERVICE_NAME} --build-arg SERVICE_NAME=${SERVICE_NAME} -f Dockerfile.simple . + - docker push registry.nxtgauge.com/nxtgauge-rust-${SERVICE_NAME} --- when: @@ -57,23 +26,14 @@ when: event: push steps: - - name: build-and-push-migrate - image: registry.nxtgauge.com/kaniko:2.1.1 - settings: - registry: registry.nxtgauge.com - repo: nxtgauge-db-migrate - dockerfile: Dockerfile.migrate - context: . - tags: - - ${CI_COMMIT_SHA} - - latest - - high-performance-latest - username: + - name: login-and-push-migrate + image: docker:28-cli + environment: + REGISTRY_USERNAME: from_secret: REGISTRY_USERNAME - password: + REGISTRY_PASSWORD: from_secret: REGISTRY_PASSWORD - insecure: true - insecure_pull: true - skip_tls_verify: true - platforms: linux/amd64 - cache: false + commands: + - echo "${REGISTRY_PASSWORD}" | docker login registry.nxtgauge.com -u "${REGISTRY_USERNAME}" --password-stdin + - docker build -t registry.nxtgauge.com/nxtgauge-db-migrate -f Dockerfile.migrate . + - docker push registry.nxtgauge.com/nxtgauge-db-migrate