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
31 lines
815 B
YAML
31 lines
815 B
YAML
# Peikarband CI/CD - Woodpecker 2.x Standard
|
|
variables:
|
|
- &harbor_reg "harbor.peikarband.ir"
|
|
- &img_name "peikarband/landing"
|
|
|
|
steps:
|
|
# مرحله ساخت تصویر
|
|
docker-build:
|
|
image: plugins/docker
|
|
# این خط حیاتی است و فقط در حالت Trusted کار میکند
|
|
privileged: true
|
|
settings:
|
|
registry: *harbor_reg
|
|
repo: ${harbor_reg}/${img_name}
|
|
tags:
|
|
- latest
|
|
- ${CI_COMMIT_SHA:0:8}
|
|
username:
|
|
from_secret: harbor_username
|
|
password:
|
|
from_secret: harbor_password
|
|
# استفاده از کش برای سرعت بالا
|
|
cache_from:
|
|
- ${harbor_reg}/${img_name}:latest
|
|
when:
|
|
event: [push, tag, manual]
|
|
|
|
# تنظیمات کپی کد
|
|
clone:
|
|
git:
|
|
image: woodpeckerci/plugin-git |