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
|
type: docker
|
||||||
name: frontend-docker
|
name: frontend-docker
|
||||||
|
|
||||||
|
clone:
|
||||||
|
disable: true
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- docker
|
- docker
|
||||||
@@ -9,6 +12,14 @@ trigger:
|
|||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
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
|
- name: build-image
|
||||||
image: docker.m.daocloud.io/library/docker:27-cli
|
image: docker.m.daocloud.io/library/docker:27-cli
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user