{"id":13342264,"url":"https://github.com/woodpecker-ci/plugin-git","last_synced_at":"2025-05-07T23:21:18.855Z","repository":{"id":39846742,"uuid":"410589193","full_name":"woodpecker-ci/plugin-git","owner":"woodpecker-ci","description":"Woodpecker plugin for cloning Git repositories","archived":false,"fork":false,"pushed_at":"2025-05-04T17:51:41.000Z","size":508,"stargazers_count":21,"open_issues_count":18,"forks_count":29,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-04T18:33:30.807Z","etag":null,"topics":["ci","git","hacktoberfest","plugin","woodpecker-ci","woodpecker-plugin","woodpeckerci"],"latest_commit_sha":null,"homepage":"https://woodpecker-ci.org/plugins/git-clone","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/woodpecker-ci.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"open_collective":"woodpecker-ci","github":"woodpecker-ci"}},"created_at":"2021-09-26T15:28:31.000Z","updated_at":"2025-05-04T17:51:28.000Z","dependencies_parsed_at":"2023-02-18T02:10:18.997Z","dependency_job_id":"e147d3c2-f8c6-41ee-b266-3d4ecb815303","html_url":"https://github.com/woodpecker-ci/plugin-git","commit_stats":{"total_commits":280,"total_committers":38,"mean_commits":7.368421052631579,"dds":0.7142857142857143,"last_synced_commit":"b40f0568aafeb0cd8447093e6e3e7b53a7629128"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodpecker-ci%2Fplugin-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodpecker-ci%2Fplugin-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodpecker-ci%2Fplugin-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodpecker-ci%2Fplugin-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/woodpecker-ci","download_url":"https://codeload.github.com/woodpecker-ci/plugin-git/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252721054,"owners_count":21793746,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci","git","hacktoberfest","plugin","woodpecker-ci","woodpecker-plugin","woodpeckerci"],"created_at":"2024-07-29T19:28:12.923Z","updated_at":"2025-05-07T23:21:18.824Z","avatar_url":"https://github.com/woodpecker-ci.png","language":"Go","funding_links":["https://opencollective.com/woodpecker-ci","https://github.com/sponsors/woodpecker-ci"],"categories":[],"sub_categories":[],"readme":"# plugin-git\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://ci.woodpecker-ci.org/repos/5586\" title=\"Build Status\"\u003e\n    \u003cimg src=\"https://ci.woodpecker-ci.org/api/badges/5586/status.svg\" alt=\"Build Status\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://discord.gg/fcMQqSMXJy\" title=\"Discord chat\"\u003e\n    \u003cimg src=\"https://img.shields.io/discord/838698813463724034.svg\" alt=\"Discord chat\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://goreportcard.com/report/github.com/woodpecker-ci/plugin-git\" title=\"Go Report Card\"\u003e\n    \u003cimg src=\"https://goreportcard.com/badge/github.com/woodpecker-ci/plugin-git\" alt=\"Go Report Card\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://godoc.org/github.com/woodpecker-ci/plugin-git\" title=\"GoDoc\"\u003e\n    \u003cimg src=\"https://godoc.org/github.com/woodpecker-ci/plugin-git?status.svg\" alt=\"GoDoc\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://hub.docker.com/r/woodpeckerci/plugin-git\" title=\"Docker pulls\"\u003e\n    \u003cimg src=\"https://img.shields.io/docker/pulls/woodpeckerci/plugin-git\" alt=\"Docker pulls\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/Apache-2.0\" title=\"License: Apache-2.0\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\" alt=\"License: Apache-2.0\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nWoodpecker plugin to clone `git` repositories. For the usage information and a listing of the available options please take a look at [the docs](https://woodpecker-ci.org/plugins/Git%20Clone).\nThe docs are also available in [`docs.md` in this repository](docs.md).\n\n## Build\n\nBuild the binary with the following command:\n\n```console\nexport GOOS=linux\nexport GOARCH=amd64\nexport CGO_ENABLED=0\nexport GO111MODULE=on\n\ngo build -v -a -tags netgo -o release/linux/amd64/plugin-git\n```\n\n## Docker\n\nBuild the Docker image with the following command:\n\n```console\ndocker buildx build \\\n  --label org.label-schema.build-date=$(date -u +\"%Y-%m-%dT%H:%M:%SZ\") \\\n  --label org.label-schema.vcs-ref=$(git rev-parse --short HEAD) \\\n  --platform linux/amd64 --output type=docker \\\n  --file docker/Dockerfile.multiarch --tag woodpeckerci/plugin-git .\n```\n\n*The platform linux/amd64 should be replaced by the correct platform.*\n\nThis will build the image and load it into docker so the image can be used locally.\n[More information on the output formats can be found in docker buildx doc](https://docs.docker.com/engine/reference/commandline/buildx_build/#output).\n\n## Usage\n\nClone a commit:\n\n```console\ndocker run --rm \\\n  -e CI_REPO_REMOTE=https://github.com/garyburd/redigo.git \\\n  -e CI_WORKSPACE=/go/src/github.com/garyburd/redigo \\\n  -e CI_BUILD_EVENT=push \\\n  -e CI_COMMIT_SHA=d8dbe4d94f15fe89232e0402c6e8a0ddf21af3ab \\\n  -e CI_COMMIT_REF=refs/heads/master \\\n  woodpeckerci/plugin-git\n```\n\nClone a pull request:\n\n```console\ndocker run --rm \\\n  -e CI_REPO_REMOTE=https://github.com/garyburd/redigo.git \\\n  -e CI_WORKSPACE=/go/src/github.com/garyburd/redigo \\\n  -e CI_BUILD_EVENT=pull_request \\\n  -e CI_COMMIT_SHA=3b4642018d177bf5fecc5907e7f341a2b5c12b8a \\\n  -e CI_COMMIT_REF=refs/pull/74/head \\\n  woodpeckerci/plugin-git\n```\n\nClone a tag:\n\n```console\ndocker run --rm \\\n  -e CI_REPO_REMOTE=https://github.com/garyburd/redigo.git \\\n  -e CI_WORKSPACE=/go/src/github.com/garyburd/redigo \\\n  -e CI_BUILD_EVENT=tag \\\n  -e CI_COMMIT_SHA=3b4642018d177bf5fecc5907e7f341a2b5c12b8a \\\n  -e CI_COMMIT_REF=refs/tags/74/head \\\n  woodpeckerci/plugin-git\n```\n\n## Build arguments\n\n### HOME\n\nThe docker image can be build using `--build-arg HOME=\u003ccustom home\u003e`.\nThis will create the directory for the custom home and set the custom home as the default value for the `home` plugin setting (see [the plugin docs](./docs.md) for more information about this setting).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoodpecker-ci%2Fplugin-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwoodpecker-ci%2Fplugin-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoodpecker-ci%2Fplugin-git/lists"}