Hard fail if a step in the docker build fails.
This commit is contained in:
1 parent
8502a845b1
commit
9d614a51fb
1 file changed
+3
Regular → Executable
+3
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Stop immediately on any error so a failed build never gets tagged or pushed
|
||||
set -euo pipefail
|
||||
|
||||
# Extract version from version.py
|
||||
if [ -f "version.py" ]; then
|
||||
VERSION=$(python3 -c "from version import VERSION; print(VERSION)")
|
||||
|
||||
Reference in new issue
Block a user