Create build-atom-website task
This commit is contained in:
44
concourse/tasks/build-atom-website.sh
Executable file
44
concourse/tasks/build-atom-website.sh
Executable file
@@ -0,0 +1,44 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
workdir=`pwd`
|
||||
sources=$workdir/sts4/eclipse-distribution/common/html
|
||||
target=$workdir/website
|
||||
# consider passing this in from pipeline as a env var if we are also going to use it for 'release' builds
|
||||
dist_type=snapshot
|
||||
|
||||
#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"
|
||||
|
||||
packages=$(ls s3-*)
|
||||
echo "package=${packages}"
|
||||
|
||||
echo "<ul>" > $target/atom-packages-snippet.html
|
||||
for p in $packages; do
|
||||
export pkd_url=`cat $package/url`
|
||||
export pkg_name=$(basename $url)
|
||||
envsubst >> "$target/vscode-extensions-snippet.html" << XXXXXX
|
||||
<li><a href="${pkg_url}">${pkg_name}</a>
|
||||
XXXXXX
|
||||
done
|
||||
echo "<ul>" >> $target/atom-packages-snippet.html
|
||||
export atom_snippet=`cat "$target/atom-extensions-snippet.html"`
|
||||
|
||||
envsubst > "$target/atom-extensions.html" << XXXXXX
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<h1>STS4 Vscode Extensions</h1>
|
||||
|
||||
$atom_snippet
|
||||
|
||||
</body>
|
||||
</html>
|
||||
XXXXXX
|
||||
|
||||
echo "============== atom-extensions.html =============="
|
||||
cat $target/atom-extensions.html
|
||||
echo "============== atom-extensions-snippet.html =============="
|
||||
cat $target/atom-extensions-snippet.html
|
||||
14
concourse/tasks/build-atom-website.yml
Normal file
14
concourse/tasks/build-atom-website.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
inputs:
|
||||
- name: sts4
|
||||
- name: s3-bosh-atom-snapshot
|
||||
- name: s3-concourse-atom-snapshot
|
||||
- name: s3-manifest-yaml-atom-snapshot
|
||||
outputs:
|
||||
- name: website
|
||||
platform: linux
|
||||
image_resource:
|
||||
type: docker-image
|
||||
source:
|
||||
repository: kdvolder/sts4-build-env
|
||||
run:
|
||||
path: "sts4/concourse/tasks/build-atom-website.sh"
|
||||
Reference in New Issue
Block a user