Hard fail if a step in the docker build fails.
This commit is contained in:
3
build_and_push_docker
Normal file → Executable file
3
build_and_push_docker
Normal file → Executable 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)")
|
||||
|
||||
Reference in New Issue
Block a user