Use default Drone clone step
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:
10
.drone.yml
10
.drone.yml
@@ -3,7 +3,7 @@ type: docker
|
||||
name: backend-docker
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
depth: 50
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
@@ -12,14 +12,6 @@ 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