diff --git a/process.sh b/process.sh index 2ab9b27..8524b2f 100755 --- a/process.sh +++ b/process.sh @@ -6,6 +6,9 @@ # pour la source sélectionnée ou pour toutes les sources #********************************************************************** +# fail on error +set -e + source=$1 step=$2 mode=$3 diff --git a/publish-docker.sh b/publish-docker.sh index e487e09..a281191 100644 --- a/publish-docker.sh +++ b/publish-docker.sh @@ -1,5 +1,8 @@ #!/bin/sh +# fail on error +set -e + # publish Dockerfile built image to docker hub docker build . -t decp-rama docker tag decp-rama etalab/decp-rama diff --git a/publish.sh b/publish.sh index 4bcfca7..dbc9365 100755 --- a/publish.sh +++ b/publish.sh @@ -9,6 +9,9 @@ # /!\ Le dataset doit avoir été créé et une ressource decp.json doit avoir été ajoutée # à ce dataset. +# fail on error +set -e + case ${CIRCLE_BRANCH} in *)