diff options
author | Andrei Karas <akaras@inbox.ru> | 2020-05-30 09:47:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2020-05-30 09:47:15 +0300 |
commit | 8c5298284548c93d1c520b7e8c6ab3bed4c0e803 (patch) | |
tree | 347467bdf769f1f80da252f51acbb06861d078a6 /tools/ci | |
parent | 3999aa8db3ccc5486af4808b9a6c693ffef13224 (diff) | |
download | mv-8c5298284548c93d1c520b7e8c6ab3bed4c0e803.tar.gz mv-8c5298284548c93d1c520b7e8c6ab3bed4c0e803.tar.bz2 mv-8c5298284548c93d1c520b7e8c6ab3bed4c0e803.tar.xz mv-8c5298284548c93d1c520b7e8c6ab3bed4c0e803.zip |
Exit with error if docker pull in ci scripts failed
Diffstat (limited to 'tools/ci')
-rwxr-xr-x | tools/ci/scripts/docker_run.sh | 2 | ||||
-rwxr-xr-x | tools/ci/scripts/docker_run_cross.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/ci/scripts/docker_run.sh b/tools/ci/scripts/docker_run.sh index 5c0cd1197..2fc292df8 100755 --- a/tools/ci/scripts/docker_run.sh +++ b/tools/ci/scripts/docker_run.sh @@ -5,7 +5,7 @@ echo "PACKAGES: ${PACKAGES}" echo "COMMAND: ${COMMAND}" echo "JOBS: ${JOBS}" -docker pull ${IMAGE} +docker pull ${IMAGE} || exit 1 docker run \ --volume=$(pwd):/build:rw \ -e PACKAGES="${PACKAGES}" \ diff --git a/tools/ci/scripts/docker_run_cross.sh b/tools/ci/scripts/docker_run_cross.sh index e07df0cf4..5c113f85c 100755 --- a/tools/ci/scripts/docker_run_cross.sh +++ b/tools/ci/scripts/docker_run_cross.sh @@ -6,7 +6,7 @@ echo "CROSS: ${CROSS}" echo "COMMAND: ${COMMAND}" echo "JOBS: ${JOBS}" -docker pull ${IMAGE} +docker pull ${IMAGE} || exit 1 docker run \ --volume=$(pwd):/build:rw \ -e PACKAGES="${PACKAGES}" \ |