nurse/.concourse/branch-tracker.yml

42 lines
1.2 KiB
YAML
Raw Normal View History

2022-09-27 20:19:27 +00:00
---
resource_types:
2022-12-30 20:53:33 +00:00
- name: git-branches
type: registry-image
source:
repository: aoldershaw/git-branches-resource
2022-09-27 20:19:27 +00:00
resources:
2022-12-30 20:53:33 +00:00
- name: feature-branches
type: git-branches
source:
uri: https://code.icb4dc0.de/prskr/nurse.git
# The "(?P<name>pattern)" 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<feature>.*)'
2022-09-27 20:19:27 +00:00
2022-12-30 20:53:33 +00:00
- name: nurse.git
type: git
icon: github
source:
uri: https://code.icb4dc0.de/prskr/nurse.git
fetch_tags: true
2022-09-27 20:19:27 +00:00
jobs:
2022-12-30 20:53:33 +00:00
- name: set-feature-pipelines
plan:
- in_parallel:
- get: feature-branches
trigger: true
- get: nurse.git
- load_var: branches
file: feature-branches/branches.json
2023-01-02 19:35:01 +00:00
- across:
- var: branch
values: ((.:branches))
set_pipeline: nurse.dev
2023-01-02 19:35:01 +00:00
file: nurse.git/.concourse/branch-validate.yml
instance_vars: {feature: ((.:branch.groups.feature))}
vars: {branch: ((.:branch.name))}