mirror of
https://github.com/thegeeklab/wp-git-clone.git
synced 2024-11-24 13:00:42 +00:00
2.1 KiB
2.1 KiB
title |
---|
wp-git-clone |
Woodpecker CI plugin to clone git repositories.
{{< toc >}}
Usage
clone:
git:
image: quay.io/thegeeklab/wp-git-clone
settings:
depth: 50
lfs: false
Parameters
{{< propertylist name=wp-git-clone.data sort=name >}}
Build
Build the binary with the following command:
make build
Build the container image with the following command:
docker build --file Containerfile.multiarch --tag thegeeklab/wp-git-clone .
Test
docker run --rm \
-e CI_REPO_CLONE_URL=https://github.com/octocat/Hello-World.git \
-e CI_PIPELINE_EVENT=push \
-e CI_COMMIT_SHA=553c2077f0edc3d5dc5d17262f6aa498e69d6f8e \
-e CI_COMMIT_REF=refs/heads/master \
-e CI_WORKSPACE=/tmp/wp_git_testrepo \
-v $(pwd):/build:z \
-w /build \
quay.io/thegeeklab/wp-git-clone