From e2eb0a9ce108f1dd7c9fa29949a9ba71750e7f80 Mon Sep 17 00:00:00 2001 From: Agent Date: Sat, 21 Mar 2026 15:50:24 +0000 Subject: [PATCH] fix: use public clone without credentials --- .drone.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 27b3023..076b67c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,13 +16,8 @@ steps: - name: dev-clone image: ccr.ccs.tencentyun.com/violin/git-alpine:latest commands: - - git clone https://${GIT_USERNAME}:${GIT_PASSWORD}@gitea.violin-work.online/sales/todo-backend.git /repo + - git clone https://gitea.violin-work.online/sales/todo-backend.git /repo - cd /repo && git checkout ${DRONE_COMMIT_SHA} - environment: - GIT_USERNAME: - from_secret: git_username - GIT_PASSWORD: - from_secret: git_password - name: dev-build image: ccr.ccs.tencentyun.com/violin/maven:3.9-eclipse-temurin-22 @@ -68,13 +63,8 @@ steps: - name: prod-clone image: ccr.ccs.tencentyun.com/violin/git-alpine:latest commands: - - git clone https://${GIT_USERNAME}:${GIT_PASSWORD}@gitea.violin-work.online/sales/todo-backend.git /repo + - git clone https://gitea.violin-work.online/sales/todo-backend.git /repo - cd /repo && git checkout ${DRONE_COMMIT_SHA} - environment: - GIT_USERNAME: - from_secret: git_username - GIT_PASSWORD: - from_secret: git_password - name: prod-build image: ccr.ccs.tencentyun.com/violin/maven:3.9-eclipse-temurin-22