This commit is contained in:
Josh Knapp 2023-10-12 14:02:46 -07:00
parent c6e445313b
commit ecd20e4ab1
2 changed files with 35 additions and 0 deletions

4
orgs.yml Normal file
View File

@ -0,0 +1,4 @@
orgs:
- id: org1
- id: org2
- id: org3

31
pipeline.yml Normal file
View File

@ -0,0 +1,31 @@
resources:
- name: org-config
type: git
source:
uri: https://repo.anhonesthost.net/jknapp/Concourse-test
branch: main
jobs:
- name: set-instanced-pipeline
plan:
- get: org-config
- load_var: orgs
file: org-config/orgs.yml
- across:
var: org
values: ((.:orgs))
run:
task: show-org
config:
platform: linux
image_resource:
type: registry-image
source: {repository: alpine}
run:
path: sh
args:
- -exc
- |
echo "Setting pipeline for org: ${ORG_ID}"
params:
ORG_ID: ((.:org.id))