module
Version:
v0.0.0-...-1a03523
Opens a new window with list of versions in this module.
Published: Nov 28, 2024
License: Apache-2.0
Opens a new window with license information.
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
Click to show internal directories.
Click to hide internal directories.