-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
468 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
# Cats `clowder.yml` example | ||
|
||
```yaml | ||
name: cats-clowder | ||
|
||
defaults: | ||
protocol: ssh | ||
branch: tracking_branch | ||
git: | ||
config: | ||
alias.cat: '!echo "😸"' | ||
|
||
sources: | ||
- name: github | ||
url: github.com | ||
|
||
projects: | ||
- name: jrgoodle/mu | ||
branch: groom | ||
git: | ||
lfs: true | ||
recursive: true | ||
- name: jrgoodle/duke | ||
tag: v0.01 | ||
- name: jrgoodle/kit | ||
path: black-cats/kit | ||
commit: f2e20031ddce5cb097105f4d8ccbc77f4ac20709 | ||
- name: jrgoodle/kishka | ||
path: black-cats/kishka | ||
git: | ||
config: | ||
alias.cat: '!echo "😸😸😸"' | ||
- name: jrgoodle/june | ||
path: black-cats/june | ||
git: | ||
config: | ||
alias.cat: null | ||
- name: jrgoodle/sasha | ||
path: black-cats/sasha | ||
remote: catnip | ||
``` | ||
|
||
## Breakdown | ||
|
||
```yaml | ||
defaults: | ||
protocol: ssh | ||
branch: tracking_branch | ||
git: | ||
config: | ||
alias.cat: '!echo "😸"' | ||
``` | ||
|
||
This example specifies a default `branch` of `trracking_branch` that all projects will inherit. It's also possible to specify a default `tag` or `commit`. The `git`section can contain custom git config entries that will be installed for all projects. | ||
|
||
```yaml | ||
- name: jrgoodle/mu | ||
branch: groom | ||
git: | ||
lfs: true | ||
recursive: true | ||
``` | ||
|
||
This project will track the `groom` `branch`. The `git` configuration enables git lfs and submodules. Running `clowder herd` will install git lfs hooks, pull lfs files, and clone submodules recursively. | ||
|
||
```yaml | ||
- name: jrgoodle/duke | ||
tag: v0.01 | ||
``` | ||
|
||
This project will check out the repository to the commit the `v0.01` tag points to. | ||
|
||
```yaml | ||
- name: jrgoodle/kit | ||
path: black-cats/kit | ||
commit: f2e20031ddce5cb097105f4d8ccbc77f4ac20709 | ||
``` | ||
|
||
This project will check out the repository to the commit specified by the full sha-1. The `path` the repository will be cloned at is `black-cats/kit` | ||
|
||
```yaml | ||
- name: jrgoodle/kishka | ||
path: black-cats/kishka | ||
git: | ||
config: | ||
alias.cat: '!echo "😸😸😸"' | ||
``` | ||
|
||
When specified at the project level, the same git config values override any of the same ones in the `defaults`, in this case an alias for a `git cat` command that prints 😸. | ||
|
||
```yaml | ||
- name: jrgoodle/june | ||
path: black-cats/june | ||
git: | ||
config: | ||
alias.cat: null | ||
``` | ||
|
||
To unset a git config entry in `defaults`, set the value to `null` | ||
|
||
```yaml | ||
- name: jrgoodle/sasha | ||
path: black-cats/sasha | ||
remote: catnip | ||
``` | ||
|
||
Adding a `remote` entry will create a remote named `catnip` instead of `origin` | ||
|
||
## Usage | ||
|
||
TODO |
Oops, something went wrong.