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