Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 640 Bytes

README.md

File metadata and controls

27 lines (24 loc) · 640 Bytes

git-plugin

A custom git plugin to clone a public git repository and prints the last commit.

Running it as part of CIE pipeline

- step:
    identifier: clone
    name: clone
    type: Plugin
    spec:
        image: "shubham149/git-plugin"
        settings:
            path: codebase
            repo_url: https://github.com/shubham149/git-plugin.git
            branch: main

Run it locally

This clones a git repo inside codebase folder.

docker run --rm \
  -e PLUGIN_PATH=codebase \
  -e PLUGIN_REPO_URL=https://github.com/shubham149/git-plugin.git \
  -e PLUGIN_BRANCH=main \
  shubham149/git-plugin