Skip to main content

Git clone hook

Project description

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


git clone
cd sceptre-git-clone-hook
make plugin TARGET=<relative_path_of_existing_sceptre_project_root>


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

  - !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

  - !git_clone
    GitRepository: <git repository url>
    RepositoryFolder: <repository folder>


For cloning one repository before create the stack

  - !git_clone my-folder

for cloning two different repositories before create the stack

  - !git_clone my-folder-one
  - !git_clone my-folder-two

or for cloning one repository before create the stack and sharing the details with other steps

  - !git_clone
    RepositoryFolder: my-folder


# after your change
python3 -m pytest tests/
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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sceptre-git-clone-hook-1.0.1.tar.gz (3.4 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page