Files
peikarband/.woodpecker.yml
Ehsan.Asadi 9154fd9216
Some checks 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
ci/woodpecker/manual/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline failed
fix: install bun before reflex export to avoid network download failures
- Pre-install bun with retry mechanism before reflex export
- Add bun to PATH to ensure reflex can find it
- Fixes connection reset errors during Docker build
2025-12-30 20:18:56 +03:30

53 lines
1.5 KiB
YAML

# Peikarband Platform - Woodpecker CI/CD Pipeline
# Harbor Registry: hub.peikarband.ir
# Best Practices Applied
steps:
build:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: hub.peikarband.ir/peikarband/landing
tags:
- latest
- ${CI_COMMIT_SHA:0:8}
dockerfile: Dockerfile
context: .
platforms: linux/amd64
build_args:
- VERSION=${CI_COMMIT_SHA:0:8}
- BUILD_DATE=${CI_PIPELINE_CREATED}
- PYTHON_VERSION=3.11
- NODE_VERSION=20
labels:
- org.opencontainers.image.created=${CI_PIPELINE_CREATED}
- org.opencontainers.image.source=${CI_REPO_LINK}
- org.opencontainers.image.url=${CI_REPO_LINK}
- org.opencontainers.image.revision=${CI_COMMIT_SHA}
- org.opencontainers.image.version=${CI_COMMIT_SHA:0:8}
- org.opencontainers.image.title=Peikarband Landing
- org.opencontainers.image.description=Peikarband hosting platform landing page
cache: inline
provenance: true
push: false
timeout: 30m
when:
event: [push, tag, manual]
push:
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]