3fd58bdcbd
* ethcore/res: activate atlantis classic hf on block 8772000 (#10766) * fix docker tags for publishing (#10741) * fix: aura don't add `SystemTime::now()` (#10720) This commit does the following: - Prevent overflow in `verify_timestamp()` by not adding `now` to found faulty timestamp - Use explicit `CheckedSystemTime::checked_add` to prevent potential consensus issues because SystemTime is platform depedent - remove `#[cfg(not(time_checked_add))]` conditional compilation * Update version * Treat empty account the same as non-exist accounts in EIP-1052 (#10775) * DevP2p: Get node IP address and udp port from Socket, if not included in PING packet (#10705) * get node IP address and udp port from Socket, if not included in PING packet * prevent bootnodes from being added to host nodes * code corrections * code corrections * code corrections * code corrections * docs * code corrections * code corrections * Apply suggestions from code review Co-Authored-By: David <dvdplm@gmail.com> * Add a way to signal shutdown to snapshotting threads (#10744) * Add a way to signal shutdown to snapshotting threads * Pass Progress to fat_rlps() so we can abort from there too. * Checking for abort in a single spot * Remove nightly-only weak/strong counts * fix warning * Fix tests * Add dummy impl to abort snapshots * Add another dummy impl for TestSnapshotService * Remove debugging code * Return error instead of the odd Ok(()) Switch to AtomicU64 * revert .as_bytes() change * fix build * fix build maybe
68 lines
2.9 KiB
Bash
Executable File
68 lines
2.9 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e # fail on any error
|
|
|
|
VERSION=$(cat ./tools/VERSION)
|
|
TRACK=$(cat ./tools/TRACK)
|
|
echo "Parity Ethereum version = ${VERSION}"
|
|
echo "Parity Ethereum track = ${TRACK}"
|
|
|
|
test "$Docker_Hub_User_Parity" -a "$Docker_Hub_Pass_Parity" \
|
|
|| ( echo "no docker credentials provided"; exit 1 )
|
|
docker login -u "$Docker_Hub_User_Parity" -p "$Docker_Hub_Pass_Parity"
|
|
echo "__________Docker info__________"
|
|
docker info
|
|
|
|
# we stopped pushing nightlies to dockerhub, will push to own registry prb.
|
|
case "${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}" in
|
|
"$SCHEDULE_TAG")
|
|
echo "Docker TAG - 'parity/parity:${SCHEDULE_TAG}'";
|
|
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:${SCHEDULE_TAG}" \
|
|
--file tools/Dockerfile .;
|
|
docker push "parity/parity:${SCHEDULE_TAG}";;
|
|
"beta")
|
|
echo "Docker TAGs - 'parity/parity:beta', 'parity/parity:latest', \
|
|
'parity/parity:${VERSION}-${CI_COMMIT_REF_NAME}'";
|
|
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:beta" \
|
|
--tag "parity/parity:latest" \
|
|
--tag "parity/parity:${VERSION}-${CI_COMMIT_REF_NAME}" \
|
|
--file tools/Dockerfile .;
|
|
docker push "parity/parity:beta";
|
|
docker push "parity/parity:latest";
|
|
docker push "parity/parity:${VERSION}-${CI_COMMIT_REF_NAME}";;
|
|
"stable")
|
|
echo "Docker TAGs - 'parity/parity:${VERSION}-${CI_COMMIT_REF_NAME}', 'parity/parity:stable'";
|
|
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}-${CI_COMMIT_REF_NAME}" \
|
|
--tag "parity/parity:stable" \
|
|
--file tools/Dockerfile .;
|
|
docker push "parity/parity:${VERSION}-${CI_COMMIT_REF_NAME}";
|
|
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}'"
|
|
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}-${CI_COMMIT_REF_NAME}" \
|
|
--file tools/Dockerfile .;
|
|
docker push "parity/parity:${VERSION}-${CI_COMMIT_REF_NAME}";;
|
|
esac
|
|
|
|
docker logout
|