scaffolder-backend: switch bitbucket-demo example template to use fetch:template

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-04-04 11:44:56 +02:00
parent 5a968c2e52
commit 45ddab44ed
2 changed files with 6 additions and 8 deletions
@@ -45,20 +45,18 @@ spec:
steps:
- id: fetch-base
name: Fetch Base
action: fetch:cookiecutter
action: fetch:template
input:
url: ./template
values:
name: ${{ parameters.name }}
owner: ${{ parameters.owner }}
- id: fetch-docs
name: Fetch Docs
action: fetch:plain
input:
targetPath: ./community
url: https://github.com/backstage/community/tree/main/backstage-community-sessions
- id: publish
name: Publish
action: publish:bitbucket
@@ -74,9 +72,9 @@ spec:
catalogInfoPath: '/catalog-info.yaml'
output:
links:
- title: Repository
links:
- title: Repository
url: ${{ steps.publish.output.remoteUrl }}
- title: Open in catalog
- title: Open in catalog
icon: catalog
entityRef: ${{ steps.register.output.entityRef }}
@@ -1,8 +1,8 @@
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: {{cookiecutter.name | jsonify}}
name: ${{values.name | dump}}
spec:
type: website
lifecycle: experimental
owner: {{cookiecutter.owner | jsonify}}
owner: ${{values.owner | dump}}