Some checks failed
ci/woodpecker/push/woodpecker Pipeline 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
27 lines
1006 B
YAML
27 lines
1006 B
YAML
# Peikarband Platform - Woodpecker CI/CD Pipeline
|
|
# Harbor registry: hub.peikarband.ir (مطابق با values-prd.yaml)
|
|
|
|
steps:
|
|
# مرحله ساخت با Kaniko Executor (مستقیم - مطمئنتر از plugin)
|
|
build-and-push:
|
|
image: gcr.io/kaniko-project/executor:latest
|
|
secrets:
|
|
- harbor_username
|
|
- harbor_password
|
|
commands:
|
|
# ساخت Docker config برای Harbor
|
|
- mkdir -p /kaniko/.docker
|
|
- echo "{\"auths\":{\"hub.peikarband.ir\":{\"username\":\"$${HARBOR_USERNAME}\",\"password\":\"$${HARBOR_PASSWORD}\"}}}" > /kaniko/.docker/config.json
|
|
# Build و Push به Harbor
|
|
- /kaniko/executor
|
|
--dockerfile=Dockerfile
|
|
--context=dir://.
|
|
--destination=hub.peikarband.ir/peikarband/landing:latest
|
|
--destination=hub.peikarband.ir/peikarband/landing:${CI_COMMIT_SHA:0:8}
|
|
--insecure=false
|
|
--skip-tls-verify=false
|
|
--digest-file=/kaniko/digest-file
|
|
when:
|
|
event: [push, tag, manual]
|
|
|