added files
Some checks failed
ci/woodpecker/push/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
ci/woodpecker/manual/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/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
ci/woodpecker/manual/woodpecker Pipeline failed
This commit is contained in:
@@ -1,31 +1,32 @@
|
|||||||
# Peikarband CI/CD - Woodpecker 2.x Standard
|
# Peikarband Platform - Woodpecker CI/CD Pipeline
|
||||||
variables:
|
variables:
|
||||||
- &harbor_reg "harbor.peikarband.ir"
|
- &harbor_registry "harbor.peikarband.ir"
|
||||||
- &img_name "peikarband/landing"
|
- &image_name "peikarband/landing"
|
||||||
|
|
||||||
|
# فیلتر کلی برای اجرا
|
||||||
|
when:
|
||||||
|
event: [push, tag, manual]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# مرحله ساخت تصویر
|
# مرحله ساخت با Kaniko (بدون نیاز به Privileged و تنظیمات Trusted)
|
||||||
docker-build:
|
build-and-push:
|
||||||
image: plugins/docker
|
image: plugins/kaniko
|
||||||
# این خط حیاتی است و فقط در حالت Trusted کار میکند
|
|
||||||
privileged: true
|
|
||||||
settings:
|
settings:
|
||||||
registry: *harbor_reg
|
registry: *harbor_registry
|
||||||
repo: ${harbor_reg}/${img_name}
|
repo: *image_name
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${CI_COMMIT_SHA:0:8}
|
- ${CI_COMMIT_SHA}
|
||||||
|
# اطلاعات لاگین به Harbor
|
||||||
username:
|
username:
|
||||||
from_secret: harbor_username
|
from_secret: harbor_username
|
||||||
password:
|
password:
|
||||||
from_secret: harbor_password
|
from_secret: harbor_password
|
||||||
# استفاده از کش برای سرعت بالا
|
# مسیر داکرفایل (اگر در ریشه نیست تغییر دهید)
|
||||||
cache_from:
|
dockerfile: Dockerfile
|
||||||
- ${harbor_reg}/${img_name}:latest
|
context: .
|
||||||
when:
|
when:
|
||||||
event: [push, tag, manual]
|
event: [push, tag, manual]
|
||||||
|
|
||||||
# تنظیمات کپی کد
|
# حذف بخش clone دستی برای جلوگیری از Hang در Image Pulling
|
||||||
clone:
|
# Woodpecker به صورت پیشفرض مرحله کلون را بهینه انجام میدهد
|
||||||
git:
|
|
||||||
image: woodpeckerci/plugin-git
|
|
||||||
Reference in New Issue
Block a user