From 15e664461df2b9c4e7bbf2895b8216f261ac4886 Mon Sep 17 00:00:00 2001 From: "Ehsan.Asadi" Date: Tue, 30 Dec 2025 22:41:14 +0330 Subject: [PATCH] fix: build base image in same repo with different tag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before: hub.peikarband.ir/peikarband/base:latest After: hub.peikarband.ir/peikarband/landing:base This solves the 413 error because: ✅ Same repository (no new repo creation) ✅ Just different tags ✅ No permission/quota issues Images: • hub.peikarband.ir/peikarband/landing:base • hub.peikarband.ir/peikarband/landing:latest • hub.peikarband.ir/peikarband/landing:{commit} --- .woodpecker.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 97e0920..103ee10 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -2,7 +2,7 @@ # Smart pipeline with base image management variables: - - &base_image 'hub.peikarband.ir/peikarband/base:latest' + - &base_image 'hub.peikarband.ir/peikarband/landing:base' - &app_image 'hub.peikarband.ir/peikarband/landing' when: @@ -17,7 +17,7 @@ pipeline: image: woodpeckerci/plugin-docker-buildx settings: registry: hub.peikarband.ir - repo: hub.peikarband.ir/peikarband/base + repo: *app_image username: from_secret: HARBOR_USERNAME password: @@ -28,8 +28,8 @@ pipeline: platforms: linux/amd64 tags: - - latest - - python3.11-node20 + - base + - base-python3.11-node20 build_args: - PYTHON_VERSION=3.11 @@ -41,9 +41,9 @@ pipeline: - org.opencontainers.image.title=Peikarband Base - org.opencontainers.image.description=Base image with Python, Node.js, bun, and build tools - - cache: inline - provenance: true + pull: true + provenance: false + sbom: false push: true @@ -119,8 +119,8 @@ pipeline: # Check base image echo "Checking base image..." if curl -f -u "$HARBOR_USERNAME:$HARBOR_PASSWORD" \ - "https://hub.peikarband.ir/v2/peikarband/base/manifests/latest" > /dev/null 2>&1; then - echo "✅ Base image: hub.peikarband.ir/peikarband/base:latest" + "https://hub.peikarband.ir/v2/peikarband/landing/manifests/base" > /dev/null 2>&1; then + echo "✅ Base image: hub.peikarband.ir/peikarband/landing:base" else echo "⚠️ Base image not found (this is OK if first build)" fi @@ -165,7 +165,7 @@ pipeline: - echo "Commit:" "${CI_COMMIT_SHA:0:8}" - echo "" - echo "Images:" - - echo " • Base:" "hub.peikarband.ir/peikarband/base:latest" + - echo " • Base:" "hub.peikarband.ir/peikarband/landing:base" - echo " • App:" "hub.peikarband.ir/peikarband/landing:${CI_COMMIT_SHA:0:8}" - echo "" - echo "Deploy with:"