mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 12:07:57 +00:00
6226737f5c
* chore: update `builder` image fix #9765 * fix: fix binary path * chore: refresh of the builder image + build script * Fix port * Fix image source * Update scripts/dockerfiles/polkadot/polkadot_builder.Dockerfile Co-authored-by: Denis Pisarev <denis.pisarev@parity.io>
25 lines
685 B
Bash
Executable File
25 lines
685 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
pushd .
|
|
|
|
# The following line ensure we run from the project root
|
|
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\.]+)"`
|
|
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}
|
|
|
|
# Show the list of available images for this repo
|
|
echo "Image is ready"
|
|
docker images | grep ${GITREPO}
|
|
|
|
popd
|