Fix fetch url

This commit is contained in:
Manevolent 2021-05-18 18:01:35 -06:00
parent d2499f8f3f
commit 8cdabf1c05
No known key found for this signature in database
GPG Key ID: 2E9B7592DFA4F344
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
#!/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
View File

@ -6,7 +6,7 @@ do
(
set -e
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`
git checkout $latest_commit
checkout_version=`cat version`