This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
72 lines (69 loc) · 1.99 KB
/
template.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
63
64
65
66
67
68
69
70
71
72
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
name: techdocs
title: Python project with TechDocs
description: Create a Python project with a CI/CD pipeline and production version of TechDocs
tags:
- recommended
- python
spec:
owner: admin
type: repository
parameters:
- title: Provide some simple information
required:
- component_id
- description
- owner
properties:
component_id:
title: Name
type: string
description: Name of the project
pattern: '^([a-zA-Z][a-zA-Z0-9]*)*$'
description:
title: Description
type: string
description: Describe your project
owner:
title: Owner
type: string
description: Owner of the project
ui:field: OwnerPicker
ui:options:
allowedKinds:
- Group
steps:
- id: template
name: Fetch Skeleton + Template
action: fetch:template
input:
url: ./skeleton
values:
component_id: ${{ parameters.component_id }}
description: ${{ parameters.description }}
destination: https://github.com/efidemos/${{ parameters.component_id }}
owner: ${{ parameters.owner }}
- id: publish
name: Publish
action: publish:github
input:
allowedHosts: ["github.com"]
description: This is ${{ parameters.component_id }}
repoUrl: 'github.com?repo=${{ parameters.component_id }}&owner=efidemos'
defaultBranch: main
repoVisibility: public
- id: register
name: Register
action: catalog:register
input:
repoContentsUrl: ${{ steps.publish.output.repoContentsUrl }}
catalogInfoPath: "/catalog-info.yaml"
output:
links:
- title: Repository
url: ${{ steps.publish.output.remoteUrl }}
- title: Open in catalog
icon: catalog
entityRef: ${{ steps.register.output.entityRef }}