I am having several Concourse pipelines that require the same resource_types
definitions. In order to eliminate duplication, is there a way to have these resource_types
being imported form other files? (e.g. linked resources)
I would expect something like this (which is similar to tasks defined in external .yml
files):
---
resource_types:
- name: rss
file: concourse-resources/resource-types/rss.yml
resources:
- name: concourse-resources
type: git
source:
uri: https://fqdn/concourse-resources.git
username: ((git_username))
password: ((git_password))
- name: booklit-releases
type: rss
source:
url: http://www.qwantz.com/rssfeed.php
jobs:
- name: announce
plan:
- get: booklit-releases
where the concourse-resources/resource-types/rss.yml
would cotain something like this:
---
name: rss
type: docker-image
source:
repository: suhlig/concourse-rss-resource
tag: latest
(adapted example from https://concourse-ci.org/resource-types.html)
If the above is currently not possible in Concourse, how can I achieve this? (e.g. generating pipelines, or maybe other more elegant solutions)