Forgot to exit on non-push pipeline trigger

This commit is contained in:
flow.gunso
2019-03-19 14:25:16 +01:00
parent d4835d5bfb
commit f9fd67b745

View File

@@ -19,6 +19,7 @@
# Restrict to pipeline triggered by pushes. # Restrict to pipeline triggered by pushes.
if [ $CI_PIPELINE_SOURCE != "push" ]; then if [ $CI_PIPELINE_SOURCE != "push" ]; then
echo "This must be only ran from pushes." echo "This must be only ran from pushes."
exit 1
fi fi
# Build and push as staging. # Build and push as staging.