fix docker tags for publishing (#10741)
This commit is contained in:
parent
1c076af5ee
commit
78a1d8b7b4
@ -3,7 +3,9 @@
|
|||||||
set -e # fail on any error
|
set -e # fail on any error
|
||||||
|
|
||||||
VERSION=$(cat ./tools/VERSION)
|
VERSION=$(cat ./tools/VERSION)
|
||||||
|
TRACK=$(cat ./tools/TRACK)
|
||||||
echo "Parity Ethereum version = ${VERSION}"
|
echo "Parity Ethereum version = ${VERSION}"
|
||||||
|
echo "Parity Ethereum track = ${TRACK}"
|
||||||
|
|
||||||
test "$Docker_Hub_User_Parity" -a "$Docker_Hub_Pass_Parity" \
|
test "$Docker_Hub_User_Parity" -a "$Docker_Hub_Pass_Parity" \
|
||||||
|| ( echo "no docker credentials provided"; exit 1 )
|
|| ( echo "no docker credentials provided"; exit 1 )
|
||||||
@ -44,6 +46,14 @@ case "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" in
|
|||||||
--file tools/Dockerfile .;
|
--file tools/Dockerfile .;
|
||||||
docker push "parity/parity:${VERSION}-${CI_COMMIT_REF_NAME}";
|
docker push "parity/parity:${VERSION}-${CI_COMMIT_REF_NAME}";
|
||||||
docker push "parity/parity:stable";;
|
docker push "parity/parity:stable";;
|
||||||
|
v[0-9]*.[0-9]*)
|
||||||
|
echo "Docker TAG - 'parity/parity:${VERSION}-${TRACK}'"
|
||||||
|
docker build --no-cache \
|
||||||
|
--build-arg VCS_REF="${CI_COMMIT_SHA}" \
|
||||||
|
--build-arg BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M:%SZ')" \
|
||||||
|
--tag "parity/parity:${VERSION}-${TRACK}" \
|
||||||
|
--file tools/Dockerfile .;
|
||||||
|
docker push "parity/parity:${VERSION}-${TRACK}";;
|
||||||
*)
|
*)
|
||||||
echo "Docker TAG - 'parity/parity:${VERSION}-${CI_COMMIT_REF_NAME}'"
|
echo "Docker TAG - 'parity/parity:${VERSION}-${CI_COMMIT_REF_NAME}'"
|
||||||
docker build --no-cache \
|
docker build --no-cache \
|
||||||
|
Loading…
Reference in New Issue
Block a user