Update release scripts to support RC versions of SDK
This commit is contained in:
parent
42c877dd1f
commit
270949377b
5 changed files with 34 additions and 20 deletions
10
Makefile
10
Makefile
|
@ -1,15 +1,13 @@
|
|||
all:
|
||||
make get_release
|
||||
make image
|
||||
make latest_image
|
||||
make publish
|
||||
make clean
|
||||
|
||||
get_release:
|
||||
latest_image:
|
||||
scripts/get_release.sh
|
||||
|
||||
.PHONY: image
|
||||
image:
|
||||
docker build -t lbryweb/lbrynet:$(VERSION) -t lbryweb/lbrynet:latest .
|
||||
latest_rc_image:
|
||||
scripts/get_release.sh rc
|
||||
|
||||
.PHONY: publish
|
||||
publish:
|
||||
|
|
17
README.md
17
README.md
|
@ -9,7 +9,7 @@ version: '3.2'
|
|||
|
||||
services:
|
||||
daemon_test_local:
|
||||
image: sayplastic/lbrynet:latest
|
||||
image: lbryweb/lbrynet:latest
|
||||
ports:
|
||||
- "5279:5279"
|
||||
volumes:
|
||||
|
@ -25,21 +25,24 @@ services:
|
|||
|
||||
## Updating, building and publishing
|
||||
|
||||
You need to have docker toolset installed on your system, as well as the ability to execute Makefiles and bash scripts.
|
||||
|
||||
#### Using the provided Makefile
|
||||
|
||||
This is the preferred method because it also checks if our newly built container can actually run.
|
||||
|
||||
```
|
||||
make get_release
|
||||
VERSION=0.30.5 make build
|
||||
VERSION=0.30.5 make publish
|
||||
make latest_image
|
||||
# or
|
||||
make latest_rc_image
|
||||
make publish VERSION=0.36.0
|
||||
```
|
||||
|
||||
#### Manually
|
||||
|
||||
```
|
||||
make get_release
|
||||
docker build -t sayplastic/lbrynet:0.30.5 .
|
||||
docker tag sayplastic/lbrynet:0.30.5 sayplastic/lbrynet:latest
|
||||
docker push sayplastic/lbrynet
|
||||
docker build -t lbryweb/lbrynet:0.36.0 .
|
||||
docker tag lbryweb/lbrynet:0.36.0 lbryweb/lbrynet:latest
|
||||
docker push lbryweb/lbrynet
|
||||
```
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
lbryum_servers:
|
||||
- victor.lbry.tech:50001
|
||||
use_upnp: False
|
||||
delete_blobs_on_remove: True
|
||||
share_usage_data: false
|
||||
|
@ -7,4 +9,4 @@ components_to_skip:
|
|||
- dht
|
||||
|
||||
streaming_only: true
|
||||
save_blobs: false
|
||||
save_blobs: false
|
||||
|
|
|
@ -1,13 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ ${1} == "rc" ]]; then
|
||||
API_URL="https://api.github.com/repos/lbryio/lbry/releases"
|
||||
else
|
||||
API_URL="https://api.github.com/repos/lbryio/lbry/releases/latest"
|
||||
fi
|
||||
|
||||
URL=$(
|
||||
curl -si https://api.github.com/repos/lbryio/lbry/releases/latest|
|
||||
curl -si ${API_URL}|
|
||||
grep browser_download_url|
|
||||
sed -E 's/.*"([^"]+)".*/\1/'|
|
||||
grep linux
|
||||
grep linux|
|
||||
head -n 1|
|
||||
sed -E 's/.*"([^"]+)".*/\1/'
|
||||
)
|
||||
|
||||
echo "Getting the latest release from $URL..."
|
||||
VERSION=$(echo $URL|sed -e 's/.*download\/v\([^"]*\)\/.*/\1/')
|
||||
|
||||
echo "Getting the latest version ${VERSION} from ${URL}..."
|
||||
curl -OL $URL
|
||||
unzip lbrynet-linux.zip
|
||||
rm lbrynet-linux.zip
|
||||
|
||||
docker build -t lbryweb/lbrynet:$VERSION -t lbryweb/lbrynet:latest .
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
set +x
|
||||
set -x
|
||||
set -e
|
||||
|
||||
WAIT=5
|
||||
|
@ -25,5 +25,5 @@ echo "Container launched successfully, stopping it"
|
|||
docker kill $ID
|
||||
|
||||
echo "Pushing to Docker Hub..."
|
||||
docker push lbryweb/lbrynet:$VERSION
|
||||
docker push lbryweb/lbrynet:${VERSION}
|
||||
docker push lbryweb/lbrynet:latest
|
||||
|
|
Loading…
Add table
Reference in a new issue