From bf68344f0c2569d53d660590fbbfef48f4951887 Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 24 Jul 2025 13:18:54 +0200 Subject: [PATCH] fix: use plugins/gitea-release for Drone CI/CD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace plugins/github-release with plugins/gitea-release - Fix API endpoint compatibility issue (was using GitHub API v3) - Update base_url to gitea.local.nothaft.cloud - Change secret from GITHUB_TOKEN to GITEA_TOKEN - Update release notes to reference local Gitea URLs This fixes the 401 authentication error when creating releases on Gitea instances. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .drone.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 526a888..3fd4581 100644 --- a/.drone.yml +++ b/.drone.yml @@ -108,14 +108,15 @@ steps: - VERSION=${DRONE_TAG} - VITE_API_URL=${VITE_API_URL:-/api} - # -------- NEW: Create GitHub Release -------- - - name: github-release - image: plugins/github-release + # -------- NEW: Create Gitea Release -------- + - name: gitea-release + image: plugins/gitea-release when: event: tag settings: api_key: - from_secret: GITHUB_TOKEN + from_secret: GITEA_TOKEN + base_url: https://gitea.local.nothaft.cloud files: [] title: PicPeak ${DRONE_TAG} note: | @@ -123,27 +124,27 @@ steps: ## 🐳 Docker Images - This release includes Docker images published to GitHub Container Registry: + This release includes Docker images published to local registry: ```bash # Backend - docker pull ghcr.io/the-luap/picpeak-backend:${DRONE_TAG} - docker pull ghcr.io/the-luap/picpeak-backend:latest + docker pull registry.local.nothaft.cloud/picpeak-backend:${DRONE_TAG} + docker pull registry.local.nothaft.cloud/picpeak-backend:latest # Frontend - docker pull ghcr.io/the-luap/picpeak-frontend:${DRONE_TAG} - docker pull ghcr.io/the-luap/picpeak-frontend:latest + docker pull registry.local.nothaft.cloud/picpeak-frontend:${DRONE_TAG} + docker pull registry.local.nothaft.cloud/picpeak-frontend:latest ``` ## 📦 What's New - See the [README](https://github.com/the-luap/picpeak#readme) for features and documentation. + See the [README](https://gitea.nothaft.cloud/paul/picpeak#readme) for features and documentation. ## 🚀 Quick Start ```bash # Clone and deploy - git clone https://github.com/the-luap/picpeak.git + git clone https://gitea.nothaft.cloud/paul/picpeak.git cd picpeak # Use the tagged version @@ -152,7 +153,7 @@ steps: --- - For detailed deployment instructions, see the [Deployment Guide](https://github.com/the-luap/picpeak/blob/main/DEPLOYMENT.md). + For detailed deployment instructions, see the Deployment Guide in the repository. trigger: event: