Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Introduce devfile v2 for quarkus getting started #528

Merged
merged 2 commits into from
Jun 21, 2021
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
6 changes: 5 additions & 1 deletion dependencies/che-devfile-registry/build/scripts/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ 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

# Ignore double quotes warning for yq expression
# shellcheck disable=SC2016,SC2094
cat <<< "$(yq --arg metadir "${META_DIR}" '.links |= . + {self: "/\($metadir)/devfile.yaml" }' "${meta}")" > "${meta}"
done
yq -s 'map(.)' "${metas[@]}"
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ displayName: Java Quarkus
description: Java stack with OpenJDK 11, Maven 3.6.3, Gradle 6.1 and Quarkus Tools
tags: ["Java", "OpenJDK", "Maven", "Gradle", "Quarkus", "UBI8"]
icon: /images/type-quarkus.svg
links:
v2: https://github.com/crw-samples/quarkus-quickstarts/tree/devfilev2