Files
peikarband/.woodpecker.yml
Ehsan.Asadi 7e18a15b94
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
added files
2025-12-28 00:03:17 +03:30

43 lines
1.2 KiB
YAML

# Woodpecker CI Configuration for Peikarband Landing
variables:
- &harbor_registry 'harbor.peikarband.ir'
- &image_name 'peikarband/landing'
# تنظیمات فضای کاری
workspace:
base: /woodpecker/src
path: workspace
pipeline:
# مرحله ساخت و ارسال تصویر به Harbor
docker-build:
image: plugins/docker
settings:
registry: *harbor_registry
repo: ${harbor_registry}/${image_name}
# نکته: برای داشتن Short SHA در Woodpecker، پلاگین داکر
# خودش تگ‌های هوشمند را مدیریت می‌کند یا از کل SHA استفاده کنید
tags:
- ${CI_COMMIT_SHA}
- latest
- ${CI_COMMIT_BRANCH}
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]
# تنظیمات کلون کردن کد
clone:
git:
image: woodpeckerci/plugin-git:latest
settings:
depth: 50
tags: true