summaryrefslogtreecommitdiff
path: root/olamic-run
blob: 24b72b1c9ffe8f1bf3092ed357e78d014c75c443 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# vim: set ft=bash :

make

if [[ $GIT_REF =~ ^refs/heads/(.+)$ ]]; then
    INSTALL_DIR=/srv/olamic/artifacts/noncpu/"${BASH_REMATCH[1]}"
fi

if [[ "${INSTALL_DIR:-}" != "" ]]; then
    mkdir -p "${INSTALL_DIR}"
    git archive -o "${INSTALL_DIR}/noncpu.zip" @
fi