-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathre-deluxe.yaml
95 lines (95 loc) · 2.83 KB
/
re-deluxe.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
name: re-deluxe-1
title: re-deluxe-1
description: re-deluxe-1
tags:
- nextjs
- react
- javascript
spec:
owner: harness_account_all_users
type: website
parameters:
- title: Project information
required:
- org_name
- product_name
- component_id
- description
properties:
org_name:
title: Organization
type: string
description: Deluxe Organization (ex. Payments, Data, etc.)
product_name:
title: Product
type: string
description: Product name (associated in Harness as project)
component_id:
title: Name
type: string
description: Unique name of the react app - which will be used as the solution
file name
description:
title: Description
type: string
description: Help others understand what this react app is for.
- title: Repository details
required:
- project_name
- repo_name
- solution_name
properties:
project_name:
title: Repository project name
type: string
description: Name of the repository project
repo_name:
title: Repository location
type: string
description: Name of the repository
solution_name:
title: Application name
type: string
description: React application name
steps:
- id: template
name: Fetch Skeleton + Template
action: fetch:template
input:
url: ./skeleton
copyWithoutTemplating:
- .github/workflows/*
values:
org_name: ${{ parameters.org_name }}
product_name: ${{ parameters.product_name }}
component_id: ${{ parameters.component_id }}
description: ${{ parameters.description }}
artifact_id: ${{ parameters.component_id }}
project_name: ${{ parameters.project_name }}
repo_name: ${{ parameters.repo_name }}
solution_name: ${{ parameters.solution_name }}
owner: ${{ parameters.owner }}
http_port: 8080
- id: publish
name: Publish
action: publish:bitbucketCloud
input:
repoUrl: bitbucket.org?workspace=idptest&project=${{
parameters.project_name }}&repo=${{ parameters.repo_name }}
repoVisibility: private
- 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 }}