fixe ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Ehsan.Asadi
2025-12-31 07:44:32 +03:30
parent 94c4e952fa
commit ed1d18ce94

View File

@@ -14,49 +14,49 @@ steps:
# Ensure Base Image Exists
# ============================================
# ensure-base-image:
# image: woodpeckerci/plugin-docker-buildx
# settings:
# registry: hub.peikarband.ir
# repo: *app_image
# # username:
# # from_secret: HARBOR_USERNAME
# # password:
# # from_secret: HARBOR_PASSWORD
# username: admin
# password: 5459ed7590d37656410fae38bdf59eb7ee33b68cd4c
# dockerfile: docker/Dockerfile.base
# context: .
# platforms: linux/amd64
ensure-base-image:
image: woodpeckerci/plugin-docker-buildx
settings:
registry: hub.peikarband.ir
repo: *app_image
# username:
# from_secret: HARBOR_USERNAME
# password:
# from_secret: HARBOR_PASSWORD
username: admin
password: 5459ed7590d37656410fae38bdf59eb7ee33b68cd4c
dockerfile: docker/Dockerfile.base
context: .
platforms: linux/amd64
# tags:
# - base
tags:
- base
# build_args:
# - PYTHON_VERSION=3.11
# - NODE_VERSION=20
# - BUILD_DATE=${CI_PIPELINE_CREATED}
# - VERSION=${CI_COMMIT_SHA:0:8}
build_args:
- PYTHON_VERSION=3.11
- NODE_VERSION=20
- BUILD_DATE=${CI_PIPELINE_CREATED}
- VERSION=${CI_COMMIT_SHA:0:8}
# labels:
# - org.opencontainers.image.created=${CI_PIPELINE_CREATED}
# - org.opencontainers.image.source=${CI_REPO_LINK}
# - org.opencontainers.image.title=Peikarband Base
# - org.opencontainers.image.description=Base image with Python, Node.js, bun, and build tools
labels:
- org.opencontainers.image.created=${CI_PIPELINE_CREATED}
- org.opencontainers.image.source=${CI_REPO_LINK}
- org.opencontainers.image.title=Peikarband Base
- org.opencontainers.image.description=Base image with Python, Node.js, bun, and build tools
# cache: inline
# provenance: true
# sbom: true
# push: true
cache: inline
provenance: true
sbom: true
push: true
# when:
# event: [push, tag, manual]
# branch: [main, develop]
# # Only rebuild base if its definition changed
# path:
# include:
# - docker/Dockerfile.base
# - .woodpecker.yml
when:
event: [push, tag, manual]
branch: [main, develop]
# Only rebuild base if its definition changed
path:
include:
- docker/Dockerfile.base
- .woodpecker.yml
# ============================================
# Build Application Image
@@ -166,41 +166,41 @@ steps:
# Notifications
# ============================================
notify-success:
image: alpine:latest
commands:
- echo "════════════════════════════════════════"
- echo " 🎉 Pipeline Completed Successfully!"
- echo "════════════════════════════════════════"
- echo ""
- echo "Branch:" "${CI_COMMIT_BRANCH}"
- echo "Commit:" "${CI_COMMIT_SHA:0:8}"
- echo ""
- echo "Images:"
- echo " • Base:" "hub.peikarband.ir/peikarband/landing:base"
- echo " • App:" "hub.peikarband.ir/peikarband/landing:${CI_COMMIT_SHA:0:8}"
- echo ""
- echo "Deploy with:"
- echo " kubectl set image deployment/peikarband-landing \\"
- echo " peikarband-landing=hub.peikarband.ir/peikarband/landing:${CI_COMMIT_SHA:0:8}"
- echo ""
- echo "════════════════════════════════════════"
when:
event: [push, tag]
status: success
# notify-success:
# image: alpine:latest
# commands:
# - echo "════════════════════════════════════════"
# - echo " 🎉 Pipeline Completed Successfully!"
# - echo "════════════════════════════════════════"
# - echo ""
# - echo "Branch:" "${CI_COMMIT_BRANCH}"
# - echo "Commit:" "${CI_COMMIT_SHA:0:8}"
# - echo ""
# - echo "Images:"
# - echo " • Base:" "hub.peikarband.ir/peikarband/landing:base"
# - echo " • App:" "hub.peikarband.ir/peikarband/landing:${CI_COMMIT_SHA:0:8}"
# - echo ""
# - echo "Deploy with:"
# - echo " kubectl set image deployment/peikarband-landing \\"
# - echo " peikarband-landing=hub.peikarband.ir/peikarband/landing:${CI_COMMIT_SHA:0:8}"
# - echo ""
# - echo "════════════════════════════════════════"
# when:
# event: [push, tag]
# status: success
notify-failure:
image: alpine:latest
commands:
- echo "════════════════════════════════════════"
- echo " ❌ Pipeline Failed!"
- echo "════════════════════════════════════════"
- echo ""
- echo "Branch:" "${CI_COMMIT_BRANCH}"
- echo "Commit:" "${CI_COMMIT_SHA:0:8}"
- echo ""
- echo "Please check the logs above"
- echo "════════════════════════════════════════"
when:
event: [push, tag]
status: failure
# notify-failure:
# image: alpine:latest
# commands:
# - echo "════════════════════════════════════════"
# - echo " ❌ Pipeline Failed!"
# - echo "════════════════════════════════════════"
# - echo ""
# - echo "Branch:" "${CI_COMMIT_BRANCH}"
# - echo "Commit:" "${CI_COMMIT_SHA:0:8}"
# - echo ""
# - echo "Please check the logs above"
# - echo "════════════════════════════════════════"
# when:
# event: [push, tag]
# status: failure