Improve build config file and publishing script

This commit is contained in:
Andrey Beletsky 2019-03-26 00:04:31 +07:00
commit 71af7a68b3
6 changed files with 22 additions and 10 deletions

View file

@ -8,6 +8,6 @@ URL=$(
)
echo "Getting the latest release from $URL..."
curl -sOL $URL
curl -OL $URL
unzip lbrynet-linux.zip
rm lbrynet-linux.zip

View file

@ -4,10 +4,10 @@ set +x
set -e
WAIT=5
BASE_IMAGE_NAME=sayplastic/lbrynet
BASE_IMAGE_NAME=lbryweb/lbrynet
if [ -z ${VERSION+x} ]; then
echo "Please provide sayplastic/lbrynet version as \$VERSION variable."
echo "Please provide ${BASE_IMAGE_NAME} version as \$VERSION variable."
exit 1
fi
@ -25,4 +25,5 @@ echo "Container launched successfully, stopping it"
docker kill $ID
echo "Pushing to Docker Hub..."
docker push sayplastic/lbrynet:$VERSION
docker push lbryweb/lbrynet:$VERSION
docker push lbryweb/lbrynet:latest