fixe ci pipleine
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
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
This commit is contained in:
@@ -1,25 +1,26 @@
|
|||||||
# Peikarband Platform - Woodpecker CI/CD Pipeline
|
# Peikarband Platform - Woodpecker CI/CD Pipeline
|
||||||
variables:
|
# Harbor registry: hub.peikarband.ir (مطابق با values-prd.yaml)
|
||||||
- &harbor_registry "hub.peikarband.ir"
|
|
||||||
- &image_name "peikarband/landing"
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
# مرحله ساخت با Kaniko Executor (مستقیم - مطمئنتر از plugin)
|
||||||
build-and-push:
|
build-and-push:
|
||||||
image: plugins/kaniko
|
image: gcr.io/kaniko-project/executor:latest
|
||||||
settings:
|
secrets:
|
||||||
registry: *harbor_registry
|
- harbor_username
|
||||||
repo: *image_name
|
- harbor_password
|
||||||
tags:
|
commands:
|
||||||
- latest
|
# ساخت Docker config برای Harbor
|
||||||
- ${CI_COMMIT_SHA:0:8}
|
- mkdir -p /kaniko/.docker
|
||||||
username:
|
- echo "{\"auths\":{\"hub.peikarband.ir\":{\"username\":\"$${HARBOR_USERNAME}\",\"password\":\"$${HARBOR_PASSWORD}\"}}}" > /kaniko/.docker/config.json
|
||||||
from_secret: harbor_username
|
# Build و Push به Harbor
|
||||||
password:
|
- /kaniko/executor
|
||||||
from_secret: harbor_password
|
--dockerfile=Dockerfile
|
||||||
dockerfile: Dockerfile
|
--context=dir://.
|
||||||
context: .
|
--destination=hub.peikarband.ir/peikarband/landing:latest
|
||||||
insecure: false
|
--destination=hub.peikarband.ir/peikarband/landing:${CI_COMMIT_SHA:0:8}
|
||||||
skip_tls_verify: false
|
--insecure=false
|
||||||
|
--skip-tls-verify=false
|
||||||
|
--digest-file=/kaniko/digest-file
|
||||||
when:
|
when:
|
||||||
event: [push, tag, manual]
|
event: [push, tag, manual]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user