bf705674d5
Frontend fixes: - Add missing translations for chunk upload (upload.uploadingChunks, common.chunk) - Fix photo deletion visual bug by tracking deletion state per photo - Prevent UI confusion when deleting photos in admin grid Backend fixes: - Add file existence checks before deleting thumbnails - Prevent ENOENT errors for missing thumbnail files - Improve error handling in photo deletion CI/CD updates: - Remove Gitea release creation from Drone pipeline - Simplify GitHub mirror workflow (remove history rewriting, keep file removal) - Add clean-git-history.sh script for manual history cleanup These changes improve the admin photo management experience and streamline the CI/CD process for better maintainability. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
114 lines
2.6 KiB
YAML
114 lines
2.6 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
# Build Backend Docker Image
|
|
- name: build-backend
|
|
image: plugins/docker
|
|
settings:
|
|
repo: registry.local.nothaft.cloud/picpeak-backend
|
|
tags:
|
|
- latest
|
|
- ${DRONE_COMMIT_SHA:0:8}
|
|
- ${DRONE_BRANCH}-latest
|
|
dockerfile: backend/Dockerfile
|
|
context: backend/
|
|
registry: registry.local.nothaft.cloud
|
|
build_args:
|
|
- VERSION=${DRONE_TAG:-dev}
|
|
|
|
# Build Frontend Docker Image
|
|
- name: build-frontend
|
|
image: plugins/docker
|
|
settings:
|
|
repo: registry.local.nothaft.cloud/picpeak-frontend
|
|
tags:
|
|
- latest
|
|
- ${DRONE_COMMIT_SHA:0:8}
|
|
- ${DRONE_BRANCH}-latest
|
|
dockerfile: frontend/Dockerfile
|
|
context: frontend/
|
|
registry: registry.local.nothaft.cloud
|
|
build_args:
|
|
- VERSION=${DRONE_TAG:-dev}
|
|
- VITE_API_URL=${VITE_API_URL:-/api}
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
- develop
|
|
event:
|
|
- push
|
|
- pull_request
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: release
|
|
|
|
steps:
|
|
# Build Backend Release
|
|
- name: build-backend-release
|
|
image: plugins/docker
|
|
settings:
|
|
repo: registry.local.nothaft.cloud/picpeak-backend
|
|
tags:
|
|
- ${DRONE_TAG}
|
|
- latest
|
|
dockerfile: backend/Dockerfile
|
|
context: backend/
|
|
registry: registry.local.nothaft.cloud
|
|
|
|
# Build Frontend Release
|
|
- name: build-frontend-release
|
|
image: plugins/docker
|
|
settings:
|
|
repo: registry.local.nothaft.cloud/picpeak-frontend
|
|
tags:
|
|
- ${DRONE_TAG}
|
|
- latest
|
|
dockerfile: frontend/Dockerfile
|
|
context: frontend/
|
|
registry: registry.local.nothaft.cloud
|
|
|
|
# -------- NEW: Publish Docker images to GitHub Container Registry --------
|
|
- name: push-backend-ghcr
|
|
image: plugins/docker
|
|
settings:
|
|
repo: ghcr.io/the-luap/picpeak-backend
|
|
tags:
|
|
- ${DRONE_TAG}
|
|
- latest
|
|
dockerfile: backend/Dockerfile
|
|
context: backend/
|
|
registry: ghcr.io
|
|
username:
|
|
from_secret: GITHUB_USERNAME
|
|
password:
|
|
from_secret: GITHUB_TOKEN
|
|
build_args:
|
|
- VERSION=${DRONE_TAG}
|
|
|
|
- name: push-frontend-ghcr
|
|
image: plugins/docker
|
|
settings:
|
|
repo: ghcr.io/the-luap/picpeak-frontend
|
|
tags:
|
|
- ${DRONE_TAG}
|
|
- latest
|
|
dockerfile: frontend/Dockerfile
|
|
context: frontend/
|
|
registry: ghcr.io
|
|
username:
|
|
from_secret: GITHUB_USERNAME
|
|
password:
|
|
from_secret: GITHUB_TOKEN
|
|
build_args:
|
|
- VERSION=${DRONE_TAG}
|
|
- VITE_API_URL=${VITE_API_URL:-/api}
|
|
|
|
|
|
trigger:
|
|
event:
|
|
- tag |