feat: starting to add the RepoUrlPicker with integrations config
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
@@ -1,63 +1,63 @@
|
||||
apiVersion: backstage.io/v1beta2
|
||||
kind: Template
|
||||
metadata:
|
||||
name: test-template
|
||||
title: Test Template
|
||||
description: Testing out the new template schema
|
||||
spec:
|
||||
owner: backstage/techdocs-core
|
||||
type: service
|
||||
# apiVersion: backstage.io/v1beta2
|
||||
# kind: Template
|
||||
# metadata:
|
||||
# name: test-template
|
||||
# title: Test Template
|
||||
# description: Testing out the new template schema
|
||||
# spec:
|
||||
# owner: backstage/techdocs-core
|
||||
# type: service
|
||||
|
||||
parameters:
|
||||
title: Fill in some BS params
|
||||
required:
|
||||
- name
|
||||
properties:
|
||||
name:
|
||||
title: Name
|
||||
type: string
|
||||
description: Unique name of the component
|
||||
ui:widget: textarea
|
||||
ui:autofocus: true
|
||||
ui:options:
|
||||
rows: 5
|
||||
storePath: # provides {owner, repository, providerUrl}
|
||||
# $ref: '#/definitions/StorePath'
|
||||
title: Store Path
|
||||
type: string
|
||||
description: Copy https://github.com/aeothgiaetgh/aetkijhahte and hammer in some more letters
|
||||
# parameters:
|
||||
# title: Fill in some BS params
|
||||
# required:
|
||||
# - name
|
||||
# properties:
|
||||
# name:
|
||||
# title: Name
|
||||
# type: string
|
||||
# description: Unique name of the component
|
||||
# ui:widget: textarea
|
||||
# ui:autofocus: true
|
||||
# ui:options:
|
||||
# rows: 5
|
||||
# storePath: # provides {owner, repository, providerUrl}
|
||||
# # $ref: '#/definitions/StorePath'
|
||||
# title: Store Path
|
||||
# type: string
|
||||
# description: Copy https://github.com/aeothgiaetgh/aetkijhahte and hammer in some more letters
|
||||
|
||||
steps:
|
||||
- id: prepare
|
||||
name: Prepare
|
||||
action: legacy:prepare
|
||||
parameters:
|
||||
protocol: file
|
||||
url: file:///Users/patriko/dev/backstage/plugins/scaffolder-backend/sample-templates/test-template-v2
|
||||
- id: template
|
||||
name: Template
|
||||
action: legacy:template
|
||||
parameters:
|
||||
templater: cookiecutter
|
||||
values:
|
||||
name: '{{ parameters.name }}'
|
||||
- id: publish
|
||||
name: Publish
|
||||
action: legacy:publish
|
||||
parameters:
|
||||
values:
|
||||
name: '{{ parameters.name }}'
|
||||
storePath: '{{ parameters.storePath }}'
|
||||
owner: kungen # not use
|
||||
- id: register
|
||||
name: Register
|
||||
action: catalog:register
|
||||
parameters:
|
||||
catalogInfoUrl: '{{ steps.publish.output.catalogInfoUrl }}'
|
||||
# steps:
|
||||
# - id: prepare
|
||||
# name: Prepare
|
||||
# action: legacy:prepare
|
||||
# parameters:
|
||||
# protocol: file
|
||||
# url: file:///Users/patriko/dev/backstage/plugins/scaffolder-backend/sample-templates/test-template-v2
|
||||
# - id: template
|
||||
# name: Template
|
||||
# action: legacy:template
|
||||
# parameters:
|
||||
# templater: cookiecutter
|
||||
# values:
|
||||
# name: '{{ parameters.name }}'
|
||||
# - id: publish
|
||||
# name: Publish
|
||||
# action: legacy:publish
|
||||
# parameters:
|
||||
# values:
|
||||
# name: '{{ parameters.name }}'
|
||||
# storePath: '{{ parameters.storePath }}'
|
||||
# owner: kungen # not use
|
||||
# - id: register
|
||||
# name: Register
|
||||
# action: catalog:register
|
||||
# parameters:
|
||||
# catalogInfoUrl: '{{ steps.publish.output.catalogInfoUrl }}'
|
||||
|
||||
output:
|
||||
catalogInfoUrl: '{{ steps.publish.output.catalogInfoUrl }}'
|
||||
entityRef: '{{ steps.register.entityRef }}'
|
||||
# output:
|
||||
# catalogInfoUrl: '{{ steps.publish.output.catalogInfoUrl }}'
|
||||
# entityRef: '{{ steps.register.entityRef }}'
|
||||
|
||||
|
||||
# TODO:
|
||||
@@ -90,15 +90,17 @@ spec:
|
||||
title: Name
|
||||
type: string
|
||||
description: Unique name of the component
|
||||
ui:widget: textarea
|
||||
ui:autofocus: true
|
||||
ui:options:
|
||||
rows: 5
|
||||
storePath: # provides {owner, repository, providerUrl}
|
||||
# $ref: '#/definitions/StorePath'
|
||||
title: Store Path
|
||||
repoUrl:
|
||||
title: Repository Location
|
||||
type: string
|
||||
description: Copy https://github.com/aeothgiaetgh/aetkijhahte and hammer in some more letters
|
||||
ui:field: RepoUrlPicker
|
||||
ui:options:
|
||||
allowedHosts:
|
||||
- github.com
|
||||
|
||||
steps:
|
||||
- id: fetch-base
|
||||
@@ -115,13 +117,16 @@ spec:
|
||||
action: fetch:plain
|
||||
parameters:
|
||||
url: https://github.com/aeothgiaetgh/aetkijhahte/tree/master/docs/template
|
||||
|
||||
- id: publish
|
||||
name: Publish
|
||||
action: publish
|
||||
action: publish:github
|
||||
parameters:
|
||||
allowedHosts: ['ghe.mycompany.com']
|
||||
name: '{{ parameters.name }}'
|
||||
# storePath: github.com?owner=spotify&repo=name
|
||||
storePath: '{{ parameters.storePath }}'
|
||||
|
||||
- id: register
|
||||
name: Register
|
||||
action: catalog:register
|
||||
|
||||
Reference in New Issue
Block a user