From 51d19d5a655b4cae5011c5c3899c3e192462fd61 Mon Sep 17 00:00:00 2001 From: Agent Date: Sat, 21 Mar 2026 15:06:12 +0000 Subject: [PATCH] fix: clone public repo without auth --- .drone.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4680895..586b40f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,22 +13,14 @@ 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 /drone/src + - git clone https://gitea.violin-work.online/sales/todo-backend.git /drone/src - cd /drone/src - git checkout dev - 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 commands: - mvn clean package -DskipTests - when: - status: - - success - name: dev-build-image image: ccr.ccs.tencentyun.com/violin/docker:linux-amd64 @@ -67,14 +59,9 @@ 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 /drone/src + - git clone https://gitea.violin-work.online/sales/todo-backend.git /drone/src - cd /drone/src - git checkout master - 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