git-clone

module
v0.0.0-...-1a03523 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2024 License: Apache-2.0

README

git-clone

This is component implements a target that clones repositories to the filesystem.

Environment variables

The component used environment variables for configuration.

It requires the component environment variables defined here as well as the following:

Environment Variable Type Required Default Description
GIT_CLONE_PATH string no Current directory The path where to clone repositories to
GIT_CLONE_REPO_URL string yes - Valid URL of the repository to clone
GIT_CLONE_BRANCH_NAME string yes - Valid branch name of the repository to clone
GIT_CLONE_AUTH_ENABLED bool no false Whether authentication should be used for VCS
GIT_CLONE_ACCESS_TOKEN string no - Access token to be leveraged for authentication
GIT_CLONE_ACCESS_USERNAME string no - Access username to be leveraged for authentication

build git-clone

make build-target

How to run

git-clone and gitea

Spins up gitea locally and the git-clone component.

make run

git-clone, gitea and seeder

Like above but also seeding gitea with a sample repository that git-clone can clone out of the box.

make run-with-seeder

shutdown

make shutdown

Directories

Path Synopsis
cmd
pkg
git

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL