Fix fetch url
This commit is contained in:
parent
d2499f8f3f
commit
8cdabf1c05
@ -1,3 +1,3 @@
|
|||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
|
|
||||||
docker build -t lixonet-ee . && docker run -d -v /etc/bird:/etc/bird/ -v /etc/tinc:/etc/tinc -v /etc/bind:/etc/bind -v /etc/lixonet:/etc/lixonet lixonet-ee
|
docker build -t lixonet-ee . && docker run -d -e GIT_URL=https://$1:$2@github.com/Manevolent/lixonet-ee.git -v /etc/bird:/etc/bird/ -v /etc/tinc:/etc/tinc -v /etc/bind:/etc/bind -v /etc/lixonet:/etc/lixonet lixonet-ee
|
2
run.sh
2
run.sh
@ -6,7 +6,7 @@ do
|
|||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
current_version=`cat $version_file || echo 0`
|
current_version=`cat $version_file || echo 0`
|
||||||
git fetch
|
git fetch $GIT_URL
|
||||||
latest_commit=`git log "--format=%G? %H" | grep ^G | head -n 1 | cut -d' ' -f2`
|
latest_commit=`git log "--format=%G? %H" | grep ^G | head -n 1 | cut -d' ' -f2`
|
||||||
git checkout $latest_commit
|
git checkout $latest_commit
|
||||||
checkout_version=`cat version`
|
checkout_version=`cat version`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user