Go to file
CSRBot 054398f6e6
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/pr Build was killed
Add renovate.json
2023-09-21 19:09:13 +02:00
.github initial commit 2018-08-08 14:43:53 -07:00
docker Update Dockerfile.windows.ltsc2022 2023-01-04 12:06:51 +00:00
posix Add retries option (#43) 2021-11-23 10:23:52 +00:00
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.yml Update .drone.yml 2023-01-04 12:13:02 +00: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 update readme and annotate code with change 2021-05-06 14:39:13 -04:00
renovate.json Add renovate.json 2023-09-21 19:09:13 +02:00

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_WORKSPACE=/drone \
  -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