Skip to content
This repository was archived by the owner on Mar 25, 2023. It is now read-only.

Commit ef3ac41

Browse files
author
Peter Fry
committed
adding s2i custom script
1 parent 4e4e976 commit ef3ac41

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.s2i/bin/assemble

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
echo "Before assembling"
3+
4+
/usr/libexec/s2i/assemble
5+
rc=$?
6+
7+
if [ $rc -eq 0 ]; then
8+
echo "After successful assembling"
9+
echo "Building ..."
10+
npm install --save classlist.js
11+
$(npm bin)/ng build --prod --build-optimizer
12+
echo "After build."
13+
else
14+
echo "After failed assembling"
15+
fi
16+
17+
exit $rc

0 commit comments

Comments
 (0)