mirror of
https://github.com/thegeeklab/wp-git-clone.git
synced 2024-11-24 02:50:40 +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_COMMIT_SHA=b3cbd5bbd7e81436d2eee04537ea2b4c0cad4cdf \
-e CI_COMMIT_REF=refs/heads/test \
-e CI_WORKSPACE=/tmp/wp_git_testrepo \
-v $(pwd):/build:z \
-w /build \
thegeeklab/wp-git-clone