Skip to content
Snippets Groups Projects
Commit b173f80dd9dc authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

docker build: add env var to disable docker push

parent fb993b4a1de0
No related branches found
No related tags found
No related merge requests found
......@@ -45,8 +45,11 @@
docker tag $registry/$image $registry/$image:$bookmark || { echo 'Tag failed' ; exit 1; }
done
echo "Pushing docker image"
docker push $registry/$image || { echo 'Push failed' ; exit 1; }
# TODO set as an option
if [ "$ODOO_SCRIPTS_PUSH" != "false" ]; then
echo "Pushing docker image"
docker push $registry/$image || { echo 'Push failed' ; exit 1; }
fi
$here/docker_build_clean
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment