Repositories

Repositories are git projects with yaml files that contain a set of URL locations within the repo.

Making a Repository

Create a template

Download the example template

mkdir -p ~/templates
cd ~/templates
wget http://github.com/kick-project/kick/releases/latest/website-template.tar.gz -O - | tar -zxvf -

Initialize the template

cd website-template
kick init template website
# <STDOUT>
# generated repo.yml

Initialize git, commit and push changes to a upstream repository

cd website-template
git init
git add .
git commit -m 'Initial commit'
git remote add origin git@github.com/example/website-template.git
git push --set-upstream origin master

Create Repository

mkdir ~/repos
cd ~/repos

mkdir myrepo
cd myrepo
kick init repo myrepo
# <STDOUT>
# generated repo.yml

Modify repo.yml to include the new repository

# repo.yml
name: myrepo
description: Repository myrepo
templates:
- git@github.com/example/website-template.git

Build repository

Build repository by running the kick repo build subcommand. This will clone the repositories defined under the templates section in the yaml file and copy the contents of .kick.yml into a subdirectory templates/. Note that this step can also be performed manually by creating the files under templates/.

kick repo build