fix: use public clone without credentials
Some checks failed
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Agent
2026-03-21 15:50:24 +00:00
parent 038c10699a
commit e2eb0a9ce1

View File

@@ -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