diff --git a/.concourse/branch-tracker.yml b/.concourse/branch-tracker.yml index 721f488..d38ced8 100644 --- a/.concourse/branch-tracker.yml +++ b/.concourse/branch-tracker.yml @@ -1,42 +1,42 @@ --- resource_types: - - name: git-branches - type: registry-image - source: - repository: aoldershaw/git-branches-resource + - name: git-branches + type: registry-image + source: + repository: aoldershaw/git-branches-resource resources: - - name: feature-branches - type: git-branches - source: - uri: https://code.icb4dc0.de/prskr/nurse.git - # The "(?Ppattern)" syntax defines a named capture group. - # aoldershaw/git-branches-resource emits the value of each named capture - # group under the `groups` key. - # - # e.g. feature/some-feature ==> {"groups": {"feature": "some-feature"}} - branch_regex: '(\d+-|\w+\/|\w+\(\w+\):\s*)(?P.*)' + - name: feature-branches + type: git-branches + source: + uri: https://code.icb4dc0.de/prskr/nurse.git + # The "(?Ppattern)" syntax defines a named capture group. + # aoldershaw/git-branches-resource emits the value of each named capture + # group under the `groups` key. + # + # e.g. feature/some-feature ==> {"groups": {"feature": "some-feature"}} + branch_regex: '(\d+-|\w+\/)(?P.*)' - - name: nurse.git - type: git - icon: github - source: - uri: https://code.icb4dc0.de/prskr/nurse.git - fetch_tags: true + - name: nurse.git + type: git + icon: github + source: + uri: https://code.icb4dc0.de/prskr/nurse.git + fetch_tags: true jobs: - - name: set-feature-pipelines - plan: - - in_parallel: - - get: feature-branches - trigger: true - - get: nurse.git - - load_var: branches - file: feature-branches/branches.json - - across: - - var: branch - values: ((.:branches)) - set_pipeline: nurse-dev - file: nurse.git/.concourse/branch-validate.yml - instance_vars: {feature: ((.:branch.groups.feature))} - vars: {branch: ((.:branch.name))} \ No newline at end of file + - name: set-feature-pipelines + plan: + - in_parallel: + - get: feature-branches + trigger: true + - get: nurse.git + - load_var: branches + file: feature-branches/branches.json + - across: + - var: branch + values: ((.:branches)) + set_pipeline: dev + file: nurse.git/.concourse/branch-validate.yml + instance_vars: {feature: ((.:branch.groups.feature))} + vars: {branch: ((.:branch.name))} \ No newline at end of file diff --git a/.concourse/branch-validate.yml b/.concourse/branch-validate.yml index 7893825..78ff93f 100644 --- a/.concourse/branch-validate.yml +++ b/.concourse/branch-validate.yml @@ -1,17 +1,17 @@ --- resources: - - name: nurse.git - type: git - icon: github - source: - uri: https://code.icb4dc0.de/prskr/nurse.git - branch: ((branch)) + - name: nurse.git + type: git + icon: github + source: + uri: https://code.icb4dc0.de/prskr/nurse.git + branch: ((branch)) jobs: - - name: lint - plan: - - get: nurse.git - trigger: true - - task: lint - file: nurse.git/.concourse/tasks/lint.yml - input_mapping: {repo: nurse.git} \ No newline at end of file + - name: lint + plan: + - get: nurse.git + trigger: true + - task: lint + file: nurse.git/.concourse/tasks/lint.yml + input_mapping: {repo: nurse.git} \ No newline at end of file