Create build-atom-website task

This commit is contained in:
Kris De Volder
2017-08-17 11:22:24 -07:00
parent f9d8287d73
commit ef666c2356
2 changed files with 58 additions and 0 deletions

View 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

View 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"