From 738a37835880e6eee4158a3ba70f3cc5458770b5 Mon Sep 17 00:00:00 2001 From: blam Date: Thu, 16 Jul 2020 11:16:24 +0200 Subject: [PATCH] chore(scaffolder): adding some new template abilities for golang --- plugins/catalog-backend/scripts/mock-data.sh | 8 ++++++++ .../sample-templates/create-react-app/template.yaml | 1 + 2 files changed, 9 insertions(+) diff --git a/plugins/catalog-backend/scripts/mock-data.sh b/plugins/catalog-backend/scripts/mock-data.sh index 76f97ccf3a..58e2efbe21 100755 --- a/plugins/catalog-backend/scripts/mock-data.sh +++ b/plugins/catalog-backend/scripts/mock-data.sh @@ -17,3 +17,11 @@ for URL in \ --data-raw "{\"type\": \"github\", \"target\": \"https://github.com/spotify/backstage/blob/master/packages/catalog-model/examples/${URL}\"}" echo done + +curl \ + --location \ + --request POST 'localhost:7000/catalog/locations' \ + --header 'Content-Type: application/json' \ + --data-raw "{\"type\": \"github\", \"target\": \"https://github.com/benjdlambert/cookiecutter-golang/blob/master/template.yaml\"}" +echo + diff --git a/plugins/scaffolder-backend/sample-templates/create-react-app/template.yaml b/plugins/scaffolder-backend/sample-templates/create-react-app/template.yaml index 5569fcd714..4d730fb702 100644 --- a/plugins/scaffolder-backend/sample-templates/create-react-app/template.yaml +++ b/plugins/scaffolder-backend/sample-templates/create-react-app/template.yaml @@ -13,6 +13,7 @@ spec: templater: cra type: website path: '.' + schema: required: - component_id