diff options
author | Danilo Sousa <dsgoncalves@uoldiveo.com> | 2016-02-19 18:58:47 -0200 |
---|---|---|
committer | Danilo Sousa <dsgoncalves@uoldiveo.com> | 2016-02-19 18:58:47 -0200 |
commit | a486e086fc3b52f26ade94e58a16fa2150fc9cae (patch) | |
tree | 3d6bc37aa024a2a6f1afc9879bc595fe78b4e497 /README.md | |
parent | 70bbbb2ca879af28afb8d7b739e4379907fd426a (diff) |
move the groups remote to the hook config
thanks to @ElvinEfendi for the idea! :+1:
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -535,14 +535,15 @@ This hook configures the repository `remote` and _push_ the code when the specif * `username`: username for repository auth. * `password`: password for repository auth. -When using groups repositories, the remotes should be passed in the `groups` config for each group. +When using groups repositories, each group must have its own `remote` in the `remote_repo` config. ``` yaml -vars: {} -groups: - routers: git@git.intranet:oxidized/routers.git - switches: git@git.intranet:oxidized/switches.git - firewalls: git@git.intranet:oxidized/firewalls.git +hooks: + push_to_remote: + remote_repo: + routers: git@git.intranet:oxidized/routers.git + switches: git@git.intranet:oxidized/switches.git + firewalls: git@git.intranet:oxidized/firewalls.git ``` @@ -550,7 +551,7 @@ groups: ``` yaml hooks: - push_to_gitlab: + push_to_remote: type: githubrepo events: [node_success, post_store] remote_repo: git@git.intranet:oxidized/test.git |