mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 05:51:02 +00:00
@@ -8,17 +8,20 @@ PROJECT_ROOT=`git rev-parse --show-toplevel`
|
|||||||
cd $PROJECT_ROOT
|
cd $PROJECT_ROOT
|
||||||
|
|
||||||
# Find the current version from Cargo.toml
|
# Find the current version from Cargo.toml
|
||||||
VERSION=`grep "^version" ./cli/Cargo.toml | egrep -o "([0-9\.]+)"`
|
VERSION=`grep "^version" ./cli/Cargo.toml | egrep -o "([0-9\.]+-?[0-9]+)"`
|
||||||
GITUSER=parity
|
GITUSER=parity
|
||||||
GITREPO=polkadot
|
GITREPO=polkadot
|
||||||
|
|
||||||
# Build the image
|
# Build the image
|
||||||
echo "Building ${GITUSER}/${GITREPO}:latest docker image, hang on!"
|
echo "Building ${GITUSER}/${GITREPO}:latest docker image, hang on!"
|
||||||
time docker build -f ./scripts/dockerfiles/polkadot/polkadot_builder.Dockerfile -t ${GITUSER}/${GITREPO}:latest .
|
time docker build \
|
||||||
docker tag ${GITUSER}/${GITREPO}:latest ${GITUSER}/${GITREPO}:v${VERSION}
|
-f ./scripts/dockerfiles/polkadot/polkadot_builder.Dockerfile \
|
||||||
|
-t ${GITUSER}/${GITREPO}:latest \
|
||||||
|
-t ${GITUSER}/${GITREPO}:v${VERSION} \
|
||||||
|
.
|
||||||
|
|
||||||
# Show the list of available images for this repo
|
# Show the list of available images for this repo
|
||||||
echo "Image is ready"
|
echo "Your Docker image for $GITUSER/$GITREPO is ready"
|
||||||
docker images | grep ${GITREPO}
|
docker images | grep ${GITREPO}
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|||||||
Reference in New Issue
Block a user