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
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
# Woodpecker CI - Peikarband Production Pipeline
|
|
|
|
# تعریف متغیرها با استفاده از YAML Anchors
|
|
variables:
|
|
- &harbor_registry 'harbor.peikarband.ir'
|
|
- &image_name 'peikarband/landing'
|
|
|
|
# تعریف مراحل پایپلاین
|
|
steps:
|
|
docker-build:
|
|
image: plugins/docker
|
|
settings:
|
|
registry: *harbor_registry
|
|
repo: ${harbor_registry}/${image_name}
|
|
# استفاده از تگهای استاندارد برای جلوگیری از خطای Slicing
|
|
tags:
|
|
- latest
|
|
- ${CI_COMMIT_SHA}
|
|
username:
|
|
from_secret: harbor_username
|
|
password:
|
|
from_secret: harbor_password
|
|
build_args:
|
|
- ENVIRONMENT=production
|
|
cache_from:
|
|
- ${harbor_registry}/${image_name}:latest
|
|
when:
|
|
- event: [push, tag, manual]
|
|
|
|
# تنظیمات کلون (اختیاری اما توصیه شده)
|
|
clone:
|
|
git:
|
|
image: woodpeckerci/plugin-git:latest
|
|
settings:
|
|
depth: 50
|
|
|
|
# تنظیمات فضای کاری
|
|
workspace:
|
|
base: /woodpecker/src
|
|
path: workspace |