https://github.com/drone/drone-git
Drone plugin for cloning Git repositories
https://github.com/drone/drone-git
Last synced: 5 months ago
JSON representation
Drone plugin for cloning Git repositories
- Host: GitHub
- URL: https://github.com/drone/drone-git
- Owner: drone
- License: apache-2.0
- Created: 2018-08-08T20:26:51.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-03-20T06:28:10.000Z (over 1 year ago)
- Last Synced: 2025-03-20T07:30:04.064Z (over 1 year ago)
- Language: Go
- Size: 70.3 KB
- Stars: 52
- Watchers: 7
- Forks: 73
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```