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
This commit is contained in:
gabriel klawitter
2018-12-06 12:08:43 +01:00
committed by Bastian Köcher
parent 6caadd1968
commit ccf575454e
+1 -1
View File
@@ -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: