-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcatalog-info.yaml
62 lines (60 loc) · 1.66 KB
/
catalog-info.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
title: DE Workflow Template
name: de-workflow-template
annotations:
github.com/project-slug: thinkingmachines/de-workflow-template
tags:
- internal
- data-warehouse
spec:
type: internal
lifecycle: development
owner: dpd-des
parameters:
- title: Create a new de-workflow-template repository
required:
- repoUrl
- description
properties:
repoUrl:
title: Repository Name
type: string
ui:field: RepoUrlPicker
ui:options:
allowedHosts:
- github.com
allowedOwners:
- thinkingmachines
description:
title: Repository Description
type: string
description: Describe repository in 1 to 2 sentences
ui:autofocus: true
steps:
- id: fetch-base
name: Fetch Base
action: fetch:template
input:
url: .
values:
owner: thinkingmachines
- id: publish
name: Publish
action: publish:github
input:
allowedHosts: ['github.com']
description: ${{ parameters.description }}
repoUrl: ${{ parameters.repoUrl }}
gitAuthorName: ${{ user.entity.metadata.name }}
gitAuthorEmail: ${{ user.entity.metadata.annotations['google.com/email'] }}
collaborators:
- user: ${{ user.entity.metadata.name }}
access: admin
- id: register
name: Register
action: catalog:register
input:
repoContentsUrl: ${{ steps.publish.output.repoContentsUrl }}
catalogInfoPath: '/catalog-info.yaml'