This repository was archived by the owner on Dec 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtemplate.yaml
More file actions
75 lines (68 loc) · 2.07 KB
/
template.yaml
File metadata and controls
75 lines (68 loc) · 2.07 KB
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
73
74
75
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
name: 5min-nodejs-service-template
title: 5min IDP - NodeJS Service Template
description: An example template that creates a simple Hello World service
tags:
- score
- humanitec
spec:
owner: user:guest
type: service
parameters:
- title: New NodeJS Service
required:
- componentName
properties:
componentName:
title: Component Name
type: string
description: Unique name of the project
ui:autofocus: true
ui:options:
rows: 5
ui:field: ValidateHumanitecAppID
steps:
- name: Read Environment
id: environment
action: humanitec:get-environment
- id: fetch-base
name: Fetch Base
action: fetch:template
input:
url: ./content
values:
name: ${{ parameters.componentName }}
image: ${{ parameters.componentName }}
orgId: ${{ steps.environment.output.orgId }}
cloudProvider: ${{ steps.environment.output.cloudProvider }}
- id: publish
name: Publishing to Gitea
action: publish:gitea
input:
description: This is your new git repo for ${{ parameters.componentName }}
repoVisibility: public
repoUrl: 5min-idp-control-plane:30443/5minorg?owner=5minorg&repo=${{ parameters.componentName }}
defaultBranch: main
organization: 5minorg
owner: 5minorg
repo: ${{ parameters.componentName }}
- id: humanitec-create-app
name: Create Humanitec App
action: humanitec:create-app
input:
appId: ${{ parameters.componentName }}
- id: register
name: Register
action: catalog:register
input:
repoContentsUrl: ${{ steps['publish'].output.repoContentsUrl }}
catalogInfoPath: '/main/catalog-info.yaml'
output:
links:
- title: Repository
url: ${{ steps['publish'].output.remoteUrl }}
- title: Open in catalog
icon: catalog
entityRef: ${{ steps['register'].output.entityRef }}