fix: clone public repo without auth
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Agent
2026-03-21 15:06:12 +00:00
parent d68e0ba68b
commit 51d19d5a65

View File

@@ -13,22 +13,14 @@ steps:
- name: dev-clone - name: dev-clone
image: ccr.ccs.tencentyun.com/violin/git-alpine:latest image: ccr.ccs.tencentyun.com/violin/git-alpine:latest
commands: 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 - cd /drone/src
- git checkout dev - git checkout dev
environment:
git_username:
from_secret: git_username
git_password:
from_secret: git_password
- name: dev-build - name: dev-build
image: ccr.ccs.tencentyun.com/violin/maven:3.9-eclipse-temurin-22 image: ccr.ccs.tencentyun.com/violin/maven:3.9-eclipse-temurin-22
commands: commands:
- mvn clean package -DskipTests - mvn clean package -DskipTests
when:
status:
- success
- name: dev-build-image - name: dev-build-image
image: ccr.ccs.tencentyun.com/violin/docker:linux-amd64 image: ccr.ccs.tencentyun.com/violin/docker:linux-amd64
@@ -67,14 +59,9 @@ steps:
- name: prod-clone - name: prod-clone
image: ccr.ccs.tencentyun.com/violin/git-alpine:latest image: ccr.ccs.tencentyun.com/violin/git-alpine:latest
commands: 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 - cd /drone/src
- git checkout master - git checkout master
environment:
git_username:
from_secret: git_username
git_password:
from_secret: git_password
- name: prod-build - name: prod-build
image: ccr.ccs.tencentyun.com/violin/maven:3.9-eclipse-temurin-22 image: ccr.ccs.tencentyun.com/violin/maven:3.9-eclipse-temurin-22