Start from a copy of manfest-yaml editor
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
workdir=`pwd`
|
||||
|
||||
cd sts4/vscode-extensions
|
||||
./build-all.sh
|
||||
|
||||
cd $workdir
|
||||
cp `find sts4/vscode-extensions -name "*.vsix"` vsix-files
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
inputs:
|
||||
- name: sts4
|
||||
outputs:
|
||||
- name: vsix-files
|
||||
platform: linux
|
||||
image_resource:
|
||||
type: docker-image
|
||||
source:
|
||||
repository: kdvolder/sts4-build-env
|
||||
run:
|
||||
path: "sts4/concourse/tasks/build-vscode-extensions.sh"
|
||||
43
vscode-extensions/vscode-concourse/test/examples/tasks/build-website.sh
Executable file
43
vscode-extensions/vscode-concourse/test/examples/tasks/build-website.sh
Executable file
@@ -0,0 +1,43 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
workdir=`pwd`
|
||||
sources=$workdir/sts4/eclipse-distribution/common/html
|
||||
target=$workdir/website
|
||||
|
||||
#cp -r "${sources}/stylesheet.css" "$target"
|
||||
#cp -r ${sources}/*.js "$target"
|
||||
#cp s3-manifest-yaml-vsix/*.vsix "$target"
|
||||
#cp s3-boot-properties-vsix/*.vsix "$target"
|
||||
|
||||
export vscode_manifest_yaml=$(basename s3-manifest-yaml-vsix/*.vsix)
|
||||
echo "vscode_manifest_yaml=$vscode_manifest_yaml"
|
||||
export vscode_boot_properties=$(basename s3-boot-properties-vsix/*.vsix)
|
||||
echo "vscode_boot_properties=$vscode_boot_properties"
|
||||
|
||||
envsubst > "$target/vscode-extensions-snippet.html" << XXXXXX
|
||||
<ul>
|
||||
<li>Spring Boot Property Language Server:
|
||||
<a href="http://s3-test.spring.io/sts4/vscode-extensions/${vscode_boot_properties}">${vscode_boot_properties}</a>
|
||||
</li>
|
||||
<li>Cloud Foundry Manifest Language Server:
|
||||
<a href="http://s3-test.spring.io/sts4/vscode-extensions/${vscode_manifest_yaml}">${vscode_manifest_yaml}</a>
|
||||
</li>
|
||||
</ul>
|
||||
XXXXXX
|
||||
|
||||
export vscode_snippet=`cat "$target/vscode-extensions-snippet.html"`
|
||||
|
||||
envsubst > "$target/vscode-extensions.html" << XXXXXX
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<h1>STS4 Vscode Extensions</h1>
|
||||
|
||||
$vscode_snippet
|
||||
|
||||
</body>
|
||||
</html>
|
||||
XXXXXX
|
||||
|
||||
cat $target/vscode-extensions.html
|
||||
@@ -0,0 +1,13 @@
|
||||
inputs:
|
||||
- name: sts4
|
||||
- name: s3-manifest-yaml-vsix
|
||||
- name: s3-boot-properties-vsix
|
||||
outputs:
|
||||
- name: website
|
||||
platform: linux
|
||||
image_resource:
|
||||
type: docker-image
|
||||
source:
|
||||
repository: kdvolder/sts4-build-env
|
||||
run:
|
||||
path: "sts4/concourse/tasks/build-website.sh"
|
||||
Reference in New Issue
Block a user