bd3bc5c168
* Updating the CI system with the publication of releases and binary files on github Signed-off-by: Denis S. Soldatov aka General-Beck <general.beck@gmail.com> * add missed scripts * chmod +x scripts * fix download link for github * rebuilding CI scripts * small fixes * update submodule wasm tests * ci: fix merge leftovers * ci: remove gitlab-next from ci triggers * ci: fix git add in docs script * ci: use nightly instead of master for publish triggers * ci: remove sleep from gitlab config * ci: replace ':' with '-' in gitlab targets * ci: fix recursive copy in docs script
23 lines
709 B
Bash
Executable File
23 lines
709 B
Bash
Executable File
#!/bin/bash
|
|
##ARGUMENTS: 1. Docker target
|
|
set -e # fail on any error
|
|
set -u # treat unset variables as error
|
|
|
|
if [ "$CI_COMMIT_REF_NAME" == "beta" ];
|
|
then export DOCKER_BUILD_TAG="latest";
|
|
else export DOCKER_BUILD_TAG=$CI_COMMIT_REF_NAME;
|
|
fi
|
|
docker login -u $Docker_Hub_User_Parity -p $Docker_Hub_Pass_Parity
|
|
|
|
echo "__________Docker TAG__________"
|
|
echo $DOCKER_BUILD_TAG
|
|
|
|
echo "__________Docker target__________"
|
|
export DOCKER_TARGET=$1
|
|
echo $DOCKER_TARGET
|
|
|
|
echo "__________Docker build and push__________"
|
|
docker build --build-arg TARGET=$DOCKER_TARGET --no-cache=true --tag parity/$DOCKER_TARGET:$DOCKER_BUILD_TAG -f docker/hub/Dockerfile .
|
|
docker push parity/$DOCKER_TARGET:$DOCKER_BUILD_TAG
|
|
docker logout
|