Skip to content
Snippets Groups Projects
Commit ccf57545 authored by gabriel klawitter's avatar gabriel klawitter Committed by Bastian Köcher
Browse files

substrate version string can and can not contain additional strings (#1219)

* substrate version string can and can not contain additional strings

* make substrate version detection future proof^tm
parent 6caadd19
No related merge requests found
......@@ -109,7 +109,7 @@ publish:docker:release:
|| ( echo "no docker credentials provided"; exit 1 )
- docker login -u "$Docker_Hub_User_Parity" -p "$Docker_Hub_Pass_Parity"
- docker info
- VERSION="$(./target/release/substrate --version | sed -n -r 's/^substrate ([0-9.]+-.*-[0-9a-f]{8})-.*$/\1/p')"
- VERSION="$(./target/release/substrate --version | sed -n -r 's/^substrate ([0-9.]+.*-[0-9a-f]{7,13})-.*$/\1/p')"
- export VERSION
- echo "Substrate version = ${VERSION}"
script:
......
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