summaryrefslogtreecommitdiff
path: root/olamic-run
diff options
context:
space:
mode:
Diffstat (limited to 'olamic-run')
-rw-r--r--olamic-run12
1 files changed, 12 insertions, 0 deletions
diff --git a/olamic-run b/olamic-run
new file mode 100644
index 0000000..24b72b1
--- /dev/null
+++ b/olamic-run
@@ -0,0 +1,12 @@
1# vim: set ft=bash :
2
3make
4
5if [[ $GIT_REF =~ ^refs/heads/(.+)$ ]]; then
6 INSTALL_DIR=/srv/olamic/artifacts/noncpu/"${BASH_REMATCH[1]}"
7fi
8
9if [[ "${INSTALL_DIR:-}" != "" ]]; then
10 mkdir -p "${INSTALL_DIR}"
11 git archive -o "${INSTALL_DIR}/noncpu.zip" @
12fi