Skip to content

Commit

Permalink
feat(v2): Add a new link entry 'v2' for devfile v2
Browse files Browse the repository at this point in the history
For now add only one entry for spring petclinic
related to eclipse-che/che#19906

Change-Id: I769f8013065249674b35748176ef8acdf847f671
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
  • Loading branch information
benoitf committed Jun 2, 2021
1 parent bc604f1 commit 79eeddd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/scripts/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ for meta in "${metas[@]}"; do
META_DIR=$(dirname "${meta}")
# Workaround to include self-links, since it's not possible to
# get filename in yq easily
echo -e "links:\n self: /${META_DIR}/devfile.yaml" >> "${meta}"
# Extra links may already be there, so just update with self link
cat <<< $(yq --arg metadir "${META_DIR}" '.links |= . + {self: "/\($metadir)/devfile.yaml" }' ${meta}) > ${meta}
done
yq -s 'map(.)' "${metas[@]}"
2 changes: 2 additions & 0 deletions devfiles/java-web-spring/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ displayName: Java Spring Boot
description: Java stack with OpenJDK 11 and Spring Boot Petclinic demo application
tags: ["Java", "OpenJDK", "Maven", "Spring Boot"]
icon: /images/springboot.svg
links:
v2: https://github.com/che-samples/java-spring-petclinic/tree/devfilev2

0 comments on commit 79eeddd

Please sign in to comment.