Hard fail if a step in the docker build fails.

This commit is contained in:
Jaret Burkett 2026-08-03 10:38:31 -06:00
parent 8502a845b1
commit 9d614a51fb
1 changed files with 3 additions and 0 deletions

3
build_and_push_docker Normal file → Executable file
View File

@ -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)")