fix: use public clone without credentials
Some checks failed
continuous-integration/drone/push Build encountered an error
Some checks failed
continuous-integration/drone/push Build encountered an error
This commit is contained in:
14
.drone.yml
14
.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
|
||||
|
||||
Reference in New Issue
Block a user