Git Clone
This package is a Sceptre Hook to clone a git repository. It executes two actions:
- removes, if exists, the current folder that you have passed
- clones the git repository that you have passed, in that folder
Installation
git clone https://github.com/bilardi/sceptre-git-clone-hook
cd sceptre-git-clone-hook
make plugin TARGET=<relative_path_of_existing_sceptre_project_root>
Syntax
You have to pass two parameters:
- the git repository url can have the follow protocols: http, https or git
- the local repository folder is a relative path from your Sceptre project root where you want to clone the repository
You can clone more git repositories using the syntax below for each git repository you need
<hook_point>:
- !git_clone <git repository url> <repository folder>
or you can clone one git repository and save the details in the property named sceptre_user_data, for using them in other steps
<hook_point>:
- !git_clone
sceptre_user_data:
GitRepository: <git repository url>
RepositoryFolder: <repository folder>
Example
For cloning one repository before create the stack
before_create:
- !git_clone https://github.com/bilardi/sceptre-git-clone-hook my-folder
for cloning two different repositories before create the stack
before_create:
- !git_clone https://github.com/bilardi/sceptre-git-clone-hook my-folder-one
- !git_clone https://github.com/bilardi/sceptre-zip-code-s3 my-folder-two
or for cloning one repository before create the stack and sharing the details with other steps
before_create:
- !git_clone
sceptre_user_data:
GitRepository: https://github.com/bilardi/sceptre-git-clone-hook
RepositoryFolder: my-folder
Development
# after your change
python3 -m pytest tests/test_git_clone.py
git add .
git commit
bumpversion --dry-run --verbose patch|minor|major
bumpversion patch|minor|major
git push origin master
git push origin vX.Y.Z
Metadata
Release files for sceptre-git-clone-hook 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sceptre-git-clone-hook-1.0.1.tar.gz | 3.4 kB | Without provenance | Details for sceptre-git-clone-hook-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sceptre_git_clone_hook-1.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for sceptre_git_clone_hook-1.0.1-py2.py3-none-any.whl |
Total release size: 6.8 kB
Release files / sceptre-git-clone-hook-1.0.1.tar.gz
| Download URL | sceptre-git-clone-hook-1.0.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2fdc3678af6d609b04be4be347285529ce310dc48ef7a83e4360bd15bb183b5
|
|
BLAKE2b-256 checksum How to use checksums |
ab624756961af2269c6242ae7c213647ebf425bc3a49c32ca5740885e030f533
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3
|
Release files / sceptre_git_clone_hook-1.0.1-py2.py3-none-any.whl
| Download URL | sceptre_git_clone_hook-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2125766f2b0ac072fcdd23bad19104bcb3d2c75332b3621c8fb58d9ecc80cae3
|
|
BLAKE2b-256 checksum How to use checksums |
2e5c7c7dc6a7aaf36d2774cb5726d8cd9f9f8e9b9fec06a941f00d091ad450df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3
|
Security for sceptre-git-clone-hook 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.