From 46faebe79a35704bd2c076cd37bf6a0484980faf Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Thu, 23 Mar 2023 19:25:20 +0100 Subject: [PATCH] feat(ci): Add base pipeline This is the pipeline that monitors for branches and starts the actual pipeline(s) for each of them. --- .ci/pipelines/base-pipeline.yml | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .ci/pipelines/base-pipeline.yml diff --git a/.ci/pipelines/base-pipeline.yml b/.ci/pipelines/base-pipeline.yml new file mode 100644 index 0000000..f6195fe --- /dev/null +++ b/.ci/pipelines/base-pipeline.yml @@ -0,0 +1,37 @@ +--- + +# The base pipeline that runs continuously, checks for branches and +# creates a new pipeline instance for each of them. + +resource_types: +- name: git-branches + type: registry-image + source: + repository: aoldershaw/git-branches-resource + +resources: +- name: repo-branches + type: git-branches + source: + uri: https://git.sclu1034.dev/bitsquid_dt/dtmt +- name: repo + type: git + source: + uri: https://git.sclu1034.dev/bitsquid_dt/dtmt + +jobs: + - name: set-pipelines + plan: + - in_parallel: + - get: repo-branches + trigger: true + - get: repo + - load_var: branches + file: repo-branches/branches.json + - across: + - var: branch + values: ((.:branches)) + set_pipeline: dtmt-check + file: repo/.ci/pipelines/check.yml + instance_vars: + branch: ((.:branch.name)) -- 2.45.3