Go to file
Brad Rydzewski e2f563e07f
Merge pull request #38 from drone/update_git_version
Update git version to 2.30.2 to fix git clone vulnerability
2021-03-23 10:17:32 -04:00
.github initial commit 2018-08-08 14:43:53 -07:00
docker Update git version to 2.30.2 2021-03-19 20:31:24 +05:30
posix Fix UT 2021-02-05 20:39:03 +05:30
scripts embed files [CI SKIP] 2019-04-10 22:10:20 -07:00
windows update embedded files [CI SKIP] 2019-04-19 08:09:55 -07:00
.dockerignore initial commit 2018-08-08 14:43:53 -07:00
.drone.starlark add starlark script [ci skip] 2019-08-06 14:32:02 -07:00
.drone.yml added 1909 dockerfile 2020-05-03 15:02:48 -04:00
.gitignore add starlark script [ci skip] 2019-08-06 14:32:02 -07:00
CHANGELOG.md update changelog for 1.1.0 [ci skip] 2019-04-19 08:18:08 -07:00
LICENSE initial commit 2018-08-08 14:43:53 -07:00
README.md fix issue with missing author and email 2018-12-14 18:10:09 -08:00

README.md

drone-git

Drone plugin to clone git repositories.

Build

Build the Docker image with the following commands:

docker build --rm -f docker/Dockerfile.linux.amd64 -t drone/git .

Usage

Clone a commit:

docker run --rm \
  -e DRONE_REMOTE_URL=https://github.com/drone/envsubst.git \
  -e DRONE_BUILD_EVENT=push \
  -e DRONE_COMMIT_SHA=15e3f9b7e16332eee3bbdff9ef31f95d23c5da2c \
  -e DRONE_COMMIT_BRANCH=master \
  drone/git