fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
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 was successful
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,23 +1,31 @@
|
|||||||
# Peikarband Platform - Woodpecker CI/CD Pipeline
|
|
||||||
# Harbor Registry: hub.peikarband.ir
|
|
||||||
# Best Practices Applied
|
|
||||||
|
|
||||||
steps:
|
pipeline:
|
||||||
build:
|
publish_landing:
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
# Build image locally with a temp tag (won't push because push: false)
|
# تنظیمات ریجیستری Harbor
|
||||||
repo: peikarband/landing
|
registry: hub.peikarband.ir
|
||||||
|
repo: hub.peikarband.ir/peikarband/landing
|
||||||
|
username:
|
||||||
|
from_secret: HARBOR_USERNAME
|
||||||
|
password:
|
||||||
|
from_secret: HARBOR_PASSWORD
|
||||||
|
|
||||||
|
# تگگذاری
|
||||||
tags:
|
tags:
|
||||||
- build-${CI_COMMIT_SHA:0:8}
|
- latest
|
||||||
|
- ${CI_COMMIT_SHA:0:8}
|
||||||
|
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
|
|
||||||
build_args:
|
build_args:
|
||||||
- VERSION=${CI_COMMIT_SHA:0:8}
|
- VERSION=${CI_COMMIT_SHA:0:8}
|
||||||
- BUILD_DATE=${CI_PIPELINE_CREATED}
|
- BUILD_DATE=${CI_PIPELINE_CREATED}
|
||||||
- PYTHON_VERSION=3.11
|
- PYTHON_VERSION=3.11
|
||||||
- NODE_VERSION=20
|
- NODE_VERSION=20
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
- org.opencontainers.image.created=${CI_PIPELINE_CREATED}
|
- org.opencontainers.image.created=${CI_PIPELINE_CREATED}
|
||||||
- org.opencontainers.image.source=${CI_REPO_LINK}
|
- org.opencontainers.image.source=${CI_REPO_LINK}
|
||||||
@@ -26,28 +34,13 @@ steps:
|
|||||||
- org.opencontainers.image.version=${CI_COMMIT_SHA:0:8}
|
- org.opencontainers.image.version=${CI_COMMIT_SHA:0:8}
|
||||||
- org.opencontainers.image.title=Peikarband Landing
|
- org.opencontainers.image.title=Peikarband Landing
|
||||||
- org.opencontainers.image.description=Peikarband hosting platform landing page
|
- org.opencontainers.image.description=Peikarband hosting platform landing page
|
||||||
|
|
||||||
cache: inline
|
cache: inline
|
||||||
provenance: true
|
provenance: true
|
||||||
push: false
|
push: true
|
||||||
load: true
|
|
||||||
timeout: 30m
|
|
||||||
when:
|
when:
|
||||||
event: [push, tag, manual]
|
- event: [push, tag, manual]
|
||||||
|
branch: main # معمولاً فقط روی برنچ اصلی پوش انجام میشود
|
||||||
|
|
||||||
push:
|
timeout: 30m
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
|
||||||
settings:
|
|
||||||
registry: hub.peikarband.ir
|
|
||||||
repo: hub.peikarband.ir/peikarband/landing
|
|
||||||
username:
|
|
||||||
from_secret: HARBOR_USERNAME
|
|
||||||
password:
|
|
||||||
from_secret: HARBOR_PASSWORD
|
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
- ${CI_COMMIT_SHA:0:8}
|
|
||||||
push: true
|
|
||||||
insecure: false
|
|
||||||
timeout: 30m
|
|
||||||
when:
|
|
||||||
event: [push, tag, manual]
|
|
||||||
Reference in New Issue
Block a user