Compare commits

..

24 Commits

Author SHA1 Message Date
Ehsan.Asadi
66e7985eb4 fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-31 01:02:13 +03:30
Ehsan.Asadi
a26e948fde fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-31 00:55:45 +03:30
Ehsan.Asadi
cec835e77b fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-31 00:52:28 +03:30
Ehsan.Asadi
b16e45cdd6 fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-31 00:48:59 +03:30
Ehsan.Asadi
a0a3258f3a fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-31 00:30:54 +03:30
Ehsan.Asadi
38effdb6a9 fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-31 00:20:21 +03:30
Ehsan.Asadi
d24a419aa0 fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-31 00:16:50 +03:30
Ehsan.Asadi
b33b0da6ab fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-31 00:12:26 +03:30
Ehsan.Asadi
bd89a7b680 fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-31 00:12:07 +03:30
Ehsan.Asadi
c1f4f2a71a fix: remove timeout from step (not allowed in Woodpecker)
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Woodpecker doesn't support timeout at step level
It's a global or pipeline-level setting

Fixed linter errors!
2025-12-30 23:48:43 +03:30
Ehsan.Asadi
0347338a30 fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-30 23:47:03 +03:30
Ehsan.Asadi
72c127f0c2 fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-30 23:43:12 +03:30
Ehsan.Asadi
ec7f90b0de fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/manual/woodpecker Pipeline failed
2025-12-30 23:33:08 +03:30
Ehsan.Asadi
69deeea1a3 fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-30 23:28:20 +03:30
Ehsan.Asadi
10aed88c23 fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-30 23:26:14 +03:30
Ehsan.Asadi
d728bd30cc fix: disable provenance/sbom in base image stage like app stage
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Problem: base stage had provenance/cache that app doesn't
Solution: Match base settings to app settings

Both stages now:
  provenance: false
  sbom: false

This matches what worked before!
2025-12-30 23:25:18 +03:30
Ehsan.Asadi
703c2c9bc7 fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-30 23:21:34 +03:30
Ehsan.Asadi
fbd2f9845c fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-30 23:20:34 +03:30
Ehsan.Asadi
c8f69caf06 fix: update Woodpecker CI syntax to new format
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Fixes:
 pipeline: → steps: (deprecated)
 secrets: → environment: with from_secret (deprecated)

Now compatible with latest Woodpecker!
2025-12-30 23:12:47 +03:30
Ehsan.Asadi
9b661d635e fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-30 23:10:56 +03:30
Ehsan.Asadi
c4a478c20d fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-30 23:06:51 +03:30
Ehsan.Asadi
2e96c28840 fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-30 23:06:11 +03:30
Ehsan.Asadi
ed66aff5c0 fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2025-12-30 23:03:11 +03:30
Ehsan.Asadi
3091de3e79 Merge feature/restructure-project into main
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Complete project restructure with base image strategy:

 Project Structure:
   • Root: Makefile, .gitignore, .woodpecker.yml
   • helm/: Kubernetes & ArgoCD configs
   • docker/: All Docker files (Dockerfile, Dockerfile.base)
   • peikarband/: Complete source code

 Base Image Strategy:
   • hub.peikarband.ir/peikarband/landing:base
   • Same repository, different tags
   • Faster builds (3 min vs 10 min)

 CI/CD:
   • Smart pipeline with base image management
   • Auto-build on changes
   • Harbor registry integration

 Documentation:
   • Complete Makefile with help
   • Quick start guide
   • All commands documented
2025-12-30 22:51:37 +03:30

View File

@@ -1,6 +1,7 @@
# Woodpecker CI/CD Pipeline - Peikarband Landing
# Smart pipeline with base image management
variables:
- &base_image 'hub.peikarband.ir/peikarband/landing:base'
- &app_image 'hub.peikarband.ir/peikarband/landing'
@@ -8,7 +9,7 @@ variables:
when:
- event: [push, pull_request, tag, manual]
pipeline:
steps:
# ============================================
# Ensure Base Image Exists
# ============================================
@@ -22,14 +23,12 @@ pipeline:
from_secret: HARBOR_USERNAME
password:
from_secret: HARBOR_PASSWORD
dockerfile: docker/Dockerfile.base
context: .
platforms: linux/amd64
tags:
- base
- base-python3.11-node20
build_args:
- PYTHON_VERSION=3.11
@@ -43,15 +42,18 @@ pipeline:
- org.opencontainers.image.title=Peikarband Base
- org.opencontainers.image.description=Base image with Python, Node.js, bun, and build tools
pull: true
cache: inline
provenance: false
sbom: false
# sbom: true
push: true
timeout: 30m
debug: true
log-level: debug
insecure: true
when:
event: [push, tag, manual]
branch: [main, develop, feature/restructure-project]
branch: [main, develop]
# Only rebuild base if its definition changed
path:
include:
@@ -65,6 +67,8 @@ pipeline:
build-and-push-app:
image: woodpeckerci/plugin-docker-buildx
settings:
debug: true
log-level: debug
registry: hub.peikarband.ir
repo: *app_image
username:
@@ -95,14 +99,13 @@ pipeline:
- org.opencontainers.image.title=Peikarband Landing
- org.opencontainers.image.description=Peikarband hosting platform landing page
pull: true
cache: inline
provenance: false
sbom: false
push: true
when:
event: [push, tag]
branch: [main, develop, feature/restructure-project]
branch: [main, develop,]
# ============================================
# Verify Images
@@ -147,10 +150,15 @@ pipeline:
exit 1
fi
secrets: [HARBOR_USERNAME, HARBOR_PASSWORD]
environment:
HARBOR_USERNAME:
from_secret: HARBOR_USERNAME
HARBOR_PASSWORD:
from_secret: HARBOR_PASSWORD
when:
event: [push, tag]
branch: [main, develop, feature/restructure-project]
branch: [main, develop]
# ============================================
# Notifications