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
|
||||
# Harbor: hub.peikarband.ir
|
||||
# مشکل: kaniko executor distroless است و /bin/sh ندارد
|
||||
# راهحل: استفاده از image که هم shell دارد و هم kaniko executor
|
||||
|
||||
steps:
|
||||
build-and-push:
|
||||
image: gcr.io/kaniko-project/executor:latest
|
||||
secrets:
|
||||
- harbor_username
|
||||
- harbor_password
|
||||
# استفاده از image که هم shell دارد (برای commands) و هم kaniko executor
|
||||
image: gcr.io/kaniko-project/executor:debug
|
||||
environment:
|
||||
HARBOR_USERNAME:
|
||||
from_secret: harbor_username
|
||||
HARBOR_PASSWORD:
|
||||
from_secret: harbor_password
|
||||
commands:
|
||||
- mkdir -p /kaniko/.docker
|
||||
- |
|
||||
|
||||
Reference in New Issue
Block a user