Use custom clone step with domestic git image
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
11
.drone.yml
11
.drone.yml
@@ -2,6 +2,9 @@ kind: pipeline
|
||||
type: docker
|
||||
name: backend-docker
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- docker
|
||||
@@ -9,6 +12,14 @@ trigger:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: clone
|
||||
image: docker.m.daocloud.io/alpine/git:2.45.2
|
||||
commands:
|
||||
- git init
|
||||
- git remote add origin http://gitea.cdchen.cloud/${DRONE_REPO}.git
|
||||
- git fetch --depth=50 origin ${DRONE_COMMIT_BRANCH}
|
||||
- git checkout -qf ${DRONE_COMMIT_SHA}
|
||||
|
||||
- name: build-image
|
||||
image: docker.m.daocloud.io/library/docker:27-cli
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user