mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-25 15:17:57 +00:00
24 lines
696 B
Bash
Executable File
24 lines
696 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
pushd .
|
|
|
|
# Change to the project root and supports calls from symlinks
|
|
cd $(dirname "$(dirname "$(realpath "${BASH_SOURCE[0]}")")")
|
|
|
|
# Find the current version from Cargo.toml
|
|
VERSION=`grep "^version" ./bin/node/cli/Cargo.toml | egrep -o "([0-9\.]+)"`
|
|
GITUSER=parity
|
|
GITREPO=substrate
|
|
|
|
# Build the image
|
|
echo "Building ${GITUSER}/${GITREPO}:latest docker image, hang on!"
|
|
time DOCKER_BUILDKIT=1 docker build -f ./docker/substrate_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
|