fixe ci pipleine
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/manual/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
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/manual/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
This commit is contained in:
@@ -1,12 +1,17 @@
|
|||||||
# Peikarband Platform - Woodpecker CI/CD Pipeline
|
# Peikarband Platform - Woodpecker CI/CD Pipeline
|
||||||
# Harbor: hub.peikarband.ir
|
# Harbor: hub.peikarband.ir
|
||||||
|
# مشکل: kaniko executor distroless است و /bin/sh ندارد
|
||||||
|
# راهحل: استفاده از image که هم shell دارد و هم kaniko executor
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
image: gcr.io/kaniko-project/executor:latest
|
# استفاده از image که هم shell دارد (برای commands) و هم kaniko executor
|
||||||
secrets:
|
image: gcr.io/kaniko-project/executor:debug
|
||||||
- harbor_username
|
environment:
|
||||||
- harbor_password
|
HARBOR_USERNAME:
|
||||||
|
from_secret: harbor_username
|
||||||
|
HARBOR_PASSWORD:
|
||||||
|
from_secret: harbor_password
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p /kaniko/.docker
|
- mkdir -p /kaniko/.docker
|
||||||
- |
|
- |
|
||||||
|
|||||||
Reference in New Issue
Block a user