Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add branch filtering #167

Merged
merged 3 commits into from
Aug 20, 2020
Merged

add branch filtering #167

merged 3 commits into from
Aug 20, 2020

Conversation

xorpaul
Copy link
Owner

@xorpaul xorpaul commented Jul 28, 2020

added source settings in the g10k config yaml to filter out Puppet environments / control repository branches based on generic commands via filter_command or simply via Golang compatible regex filter_regex

Examples:

==> tests/TestConfigFullworkingBranchFilter.yaml <==
---
:cachedir: '/tmp/g10k'

sources:
  full:
    remote: 'https://github.com/xorpaul/g10k-fullworking-env.git'
    basedir: '/tmp/branchfilter'
    filter_command: 'tests/branch_filter_command.sh $R10K_BRANCH ^(single|master)$'
==> tests/TestConfigFullworkingBranchFilterRegex.yaml <==
---
:cachedir: '/tmp/g10k'

sources:
  full:
    remote: 'https://github.com/xorpaul/g10k-fullworking-env.git'
    basedir: '/tmp/branchfilter'
    filter_regex: '^(single|master)$'

@xorpaul xorpaul merged commit bb2af81 into master Aug 20, 2020
@xorpaul xorpaul deleted the add_branch_filtering branch August 20, 2020 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant