From d962e36c5cfda1cdca4e9aedaeae158eca23803e Mon Sep 17 00:00:00 2001 From: "Ehsan.Asadi" Date: Tue, 30 Dec 2025 15:01:20 +0330 Subject: [PATCH] fixe ci pipleine --- .woodpecker.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 6afa954..36d2c5a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,12 +1,17 @@ # Peikarband Platform - Woodpecker CI/CD Pipeline # Harbor: hub.peikarband.ir +# مشکل: kaniko executor distroless است و /bin/sh ندارد +# راه‌حل: استفاده از image که هم shell دارد و هم kaniko executor steps: build-and-push: - image: gcr.io/kaniko-project/executor:latest - secrets: - - harbor_username - - harbor_password + # استفاده از image که هم shell دارد (برای commands) و هم kaniko executor + image: gcr.io/kaniko-project/executor:debug + environment: + HARBOR_USERNAME: + from_secret: harbor_username + HARBOR_PASSWORD: + from_secret: harbor_password commands: - mkdir -p /kaniko/.docker - |