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