Skip to content
Snippets Groups Projects
Commit f956c354 authored by Chevdor's avatar Chevdor Committed by GitHub
Browse files

Fix build script for the builder image (#5189)

fix #4743
parent 7793796b
No related merge requests found
......@@ -8,17 +8,20 @@ PROJECT_ROOT=`git rev-parse --show-toplevel`
cd $PROJECT_ROOT
# 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
GITREPO=polkadot
# Build the image
echo "Building ${GITUSER}/${GITREPO}:latest docker image, hang on!"
time docker build -f ./scripts/dockerfiles/polkadot/polkadot_builder.Dockerfile -t ${GITUSER}/${GITREPO}:latest .
docker tag ${GITUSER}/${GITREPO}:latest ${GITUSER}/${GITREPO}:v${VERSION}
time docker build \
-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
echo "Image is ready"
echo "Your Docker image for $GITUSER/$GITREPO is ready"
docker images | grep ${GITREPO}
popd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment