From 967f2aaec7770fcd175b33918509768d634a0156 Mon Sep 17 00:00:00 2001 From: "Ehsan.Asadi" Date: Tue, 30 Dec 2025 20:34:55 +0330 Subject: [PATCH] fixe ci --- .woodpecker.yml | 51 +++++++++++++++++++++---------------------------- 1 file changed, 22 insertions(+), 29 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 5e3ab96..e51099c 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,23 +1,31 @@ -# Peikarband Platform - Woodpecker CI/CD Pipeline -# Harbor Registry: hub.peikarband.ir -# Best Practices Applied -steps: - build: +pipeline: + publish_landing: image: woodpeckerci/plugin-docker-buildx settings: - # Build image locally with a temp tag (won't push because push: false) - repo: peikarband/landing + # تنظیمات ریجیستری Harbor + registry: hub.peikarband.ir + repo: hub.peikarband.ir/peikarband/landing + username: + from_secret: HARBOR_USERNAME + password: + from_secret: HARBOR_PASSWORD + + # تگ‌گذاری tags: - - build-${CI_COMMIT_SHA:0:8} + - 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} @@ -26,28 +34,13 @@ steps: - 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 - load: true - timeout: 30m + push: true + when: - event: [push, tag, manual] + - event: [push, tag, manual] + branch: main # معمولاً فقط روی برنچ اصلی پوش انجام می‌شود - 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] \ No newline at end of file + timeout: 30m \ No newline at end of file