wp-git-clone/docs/content/_index.md

2.1 KiB

title
wp-git-clone

Build Status Docker Hub Quay.io Go Report Card GitHub contributors Source: GitHub License: Apache-2.0

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