Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Fix #9 #10

Merged
merged 2 commits into from
Jul 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions devfiles/goTemplate/devfile.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
apiVersion: 1.0.0
metadata:
name: jgoTemplate
name: goTemplate
projects:
- source:
type: git
location: "https://github.com/microclimate-dev2ops/microclimateGoTemplate"
- name: goproject
source:
type: git
location: "https://github.com/microclimate-dev2ops/microclimateGoTemplate"
components:
- alias: codewind-sidecar
type: chePlugin
Expand Down
8 changes: 4 additions & 4 deletions devfiles/javaMicroProfileTemplate/devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ apiVersion: 1.0.0
metadata:
name: javaMicroProfileTemplate
projects:
- source:
type: git
language: java
location: "https://github.com/microclimate-dev2ops/javaMicroProfileTemplate"
- name: javaproject
source:
type: git
location: "https://github.com/microclimate-dev2ops/javaMicroProfileTemplate"
components:
- alias: codewind-sidecar
type: chePlugin
Expand Down
8 changes: 4 additions & 4 deletions devfiles/lagomJavaTemplate/devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ apiVersion: 1.0.0
metadata:
name: lagomJavaTemplate
projects:
- source:
type: git
language: java
location: "https://github.com/microclimate-dev2ops/lagomJavaTemplate"
- name: lagomproject
source:
type: git
location: "https://github.com/microclimate-dev2ops/lagomJavaTemplate"
components:
- alias: codewind-sidecar
type: chePlugin
Expand Down
8 changes: 4 additions & 4 deletions devfiles/nodeExpressTemplate/devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ apiVersion: 1.0.0
metadata:
name: nodeExpressTemplate
projects:
- source:
type: git
language: nodejs
location: "https://github.com/microclimate-dev2ops/nodeExpressTemplate"
- name: nodeproject
source:
type: git
location: "https://github.com/microclimate-dev2ops/nodeExpressTemplate"
components:
- alias: codewind-sidecar
type: chePlugin
Expand Down
8 changes: 4 additions & 4 deletions devfiles/openLibertyTemplate/devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ apiVersion: 1.0.0
metadata:
name: openLibertyTemplate
projects:
- source:
type: git
language: java
location: "https://github.com/microclimate-dev2ops/openLibertyTemplate"
- name: libertyproject
source:
type: git
location: "https://github.com/microclimate-dev2ops/openLibertyTemplate"
components:
- alias: codewind-sidecar
type: chePlugin
Expand Down
8 changes: 4 additions & 4 deletions devfiles/pythonTemplate/devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ apiVersion: 1.0.0
metadata:
name: Python Template
projects:
- source:
type: git
language: python
location: "https://github.com/microclimate-dev2ops/SVTPythonTemplate"
- name: pythonproject
source:
type: git
location: "https://github.com/microclimate-dev2ops/SVTPythonTemplate"
components:
- alias: codewind-sidecar
type: chePlugin
Expand Down
7 changes: 4 additions & 3 deletions devfiles/springJavaTemplate/devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ apiVersion: 1.0.0
metadata:
name: springJavaTemplate
projects:
- source:
type: git
location: "https://github.com/microclimate-dev2ops/springJavaTemplate"
- name: springproject
source:
type: git
location: "https://github.com/microclimate-dev2ops/springJavaTemplate"
components:
- alias: codewind-sidecar
type: chePlugin
Expand Down
7 changes: 4 additions & 3 deletions devfiles/swiftTemplate/devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ apiVersion: 1.0.0
metadata:
name: swiftTemplate
projects:
- source:
type: git
location: "https://github.com/microclimate-dev2ops/swiftTemplate"
- name: swiftproject
source:
type: git
location: "https://github.com/microclimate-dev2ops/swiftTemplate"
components:
- alias: codewind-sidecar
type: chePlugin
Expand Down
2 changes: 1 addition & 1 deletion index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function buildIndex() {
for field in "${metaInfoFields2[@]}"
do
# String value contains quotes, e.g. "str"
projects="$(yq r -j "${devfileArray[$count]}" "projects[0].location")"
projects="$(yq r -j "${devfileArray[$count]}" "projects[0].source.location")"
#location="$(yq r -j "$projects" "location")"
echo " \"location\":$projects,"
done
Expand Down