aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-11-25 15:50:59 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-11-25 15:50:59 +0100
commitea42ca046a624ad6cdfcf8593b8145c59c3f1820 (patch)
tree0518492dc41cd1935377602f3e82f3553513cd1a
parent1dc7247e36d47a44f3a869be1fea1725a3951cd2 (diff)
downloads2i-virtio-spec-ea42ca046a624ad6cdfcf8593b8145c59c3f1820.tar.gz
add branch to filename
-rwxr-xr-xs2i/bin/assemble7
1 files changed, 6 insertions, 1 deletions
diff --git a/s2i/bin/assemble b/s2i/bin/assemble
index 9ffcd8a..ff75bf2 100755
--- a/s2i/bin/assemble
+++ b/s2i/bin/assemble
@@ -22,7 +22,12 @@ echo "---> Installing application source ..."
mv /tmp/src ./virtio-spec
echo "---> Building virtio spec ..."
-(cd virtio-spec; sh makeall.sh)
+(cd virtio-spec;
+ export SPECDOC=$(cat REVISION);
+ if test "$OPENSHIFT_BUILD_REFERENCE" != ""; then
+ SPECDOC="$SPECDOC-$OPENSHIFT_BUILD_REFERENCE"
+ fi
+ sh makeall.sh)
echo "---> Move docs output ..."
mkdir output