added files
Some checks failed
CD - Build & Deploy / release (push) Has been cancelled
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
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / security (push) Has been cancelled
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Ehsan.Asadi
2025-12-28 00:05:06 +03:30
parent 7e18a15b94
commit 4f2e93f761

View File

@@ -1,43 +1,40 @@
# Woodpecker CI Configuration for Peikarband Landing
# Woodpecker CI - Peikarband Production Pipeline
# تعریف متغیرها با استفاده از YAML Anchors
variables:
- &harbor_registry 'harbor.peikarband.ir'
- &image_name 'peikarband/landing'
# تنظیمات فضای کاری
workspace:
base: /woodpecker/src
path: workspace
pipeline:
# مرحله ساخت و ارسال تصویر به Harbor
# تعریف مراحل پایپ‌لاین
steps:
docker-build:
image: plugins/docker
settings:
registry: *harbor_registry
repo: ${harbor_registry}/${image_name}
# نکته: برای داشتن Short SHA در Woodpecker، پلاگین داکر
# خودش تگ‌های هوشمند را مدیریت می‌کند یا از کل SHA استفاده کنید
# استفاده از تگ‌های استاندارد برای جلوگیری از خطای Slicing
tags:
- ${CI_COMMIT_SHA}
- latest
- ${CI_COMMIT_BRANCH}
- ${CI_COMMIT_SHA}
username:
from_secret: harbor_username
password:
from_secret: harbor_password
build_args:
- ENVIRONMENT=production
# اصلاح فرمت کش به لیست
cache_from:
- ${harbor_registry}/${image_name}:latest
dockerfile: Dockerfile
when:
event: [push, tag, manual]
- event: [push, tag, manual]
# تنظیمات کلون کردن کد
# تنظیمات کلون (اختیاری اما توصیه شده)
clone:
git:
image: woodpeckerci/plugin-git:latest
settings:
depth: 50
tags: true
# تنظیمات فضای کاری
workspace:
base: /woodpecker/src
path: workspace