fixe ci pipleine
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/manual/woodpecker Pipeline failed
CD - Build & Deploy / build-and-push (push) Has been cancelled
CD - Build & Deploy / package-helm (push) Has been cancelled
CD - Build & Deploy / deploy-staging (push) Has been cancelled
CD - Build & Deploy / deploy-production (push) Has been cancelled
CD - Build & Deploy / release (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / security (push) Has been cancelled

This commit is contained in:
Ehsan.Asadi
2025-12-30 15:01:20 +03:30
parent 8ce967f9d7
commit d962e36c5c

View File

@@ -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
- |