* make origin repo configurable when building image
* halt build process if initial git clone fails * log resulting commit id used when buildingpull/5/head
parent
53ed76ed1d
commit
4a7b2aed70
@ -1,10 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh -e
|
||||||
|
|
||||||
DST_DIR=/src/tt-rss
|
DST_DIR=/src/tt-rss
|
||||||
|
|
||||||
mkdir -p $DST_DIR
|
mkdir -p $DST_DIR
|
||||||
|
|
||||||
git clone --branch master --depth 1 https://git.tt-rss.org/fox/tt-rss.git $DST_DIR
|
echo cloning $ORIGIN_REPO_MAIN to $DST_DIR...
|
||||||
git clone --branch master --depth 1 https://git.tt-rss.org/fox/ttrss-nginx-xaccel.git $DST_DIR/plugins.local/nginx_xaccel
|
git clone --branch master --depth 1 $ORIGIN_REPO_MAIN $DST_DIR
|
||||||
|
echo built for: $(git --git-dir=$DST_DIR/.git --no-pager log --pretty='%H' -n1 HEAD)
|
||||||
|
|
||||||
|
echo cloning $ORIGIN_REPO_XACCEL to $DST_DIR/plugins.local/nginx_xaccel...
|
||||||
|
git clone --branch master --depth 1 $ORIGIN_REPO_XACCEL $DST_DIR/plugins.local/nginx_xaccel
|
||||||
|
echo built for: $(git --git-dir=$DST_DIR/plugins.local/nginx_xaccel/.git --no-pager log --pretty='%H' -n1 HEAD)
|
||||||
|
|
||||||
mkdir -p /var/www
|
mkdir -p /var/www
|
||||||
|
Loading…
Reference in New Issue