This commit is contained in:
Manevolent 2021-05-18 18:21:18 -06:00
parent 2279b6aad1
commit 22dc5eada0
No known key found for this signature in database
GPG Key ID: 2E9B7592DFA4F344
2 changed files with 3 additions and 3 deletions

@ -1,3 +1,3 @@
#!/bin/ash
docker build -t lixonet-ee . && docker run -d -e GIT_URL=https://$1:$2@github.com/Manevolent/lixonet-ee.git -v /var/run/docker.sock:/var/run/docker.sock -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 --restart always -d -e GIT_URL=https://$1:$2@github.com/Manevolent/lixonet-ee.git -v /var/run/docker.sock:/var/run/docker.sock -v /etc/bird:/etc/bird/ -v /etc/tinc:/etc/tinc -v /etc/bind:/etc/bind -v /etc/lixonet:/etc/lixonet lixonet-ee

4
run.sh

@ -7,8 +7,8 @@ do
set -e
current_version=`cat $version_file || echo 0`
gpg --import <trusted_signers
(echo 5; echo y; echo save) | gpg --command-fd 0 --no-tty --no-greeting -q --edit-key "$(gpg --list-packets <trusted_signers | awk '$1=="keyid:"{print$2;exit}')" trust
gpg --import <trusted_signers > /dev/null
(echo 5; echo y; echo save) | gpg --command-fd 0 --no-tty --no-greeting -q --edit-key "$(gpg --list-packets <trusted_signers | awk '$1=="keyid:"{print$2;exit}')" trust > /dev/null
git fetch $GIT_URL
latest_commit=`git log "--format=%G? %H" | grep ^G | head -n 1 | cut -d' ' -f2`