Hard fail if a step in the docker build fails.
This commit is contained in:
parent
8502a845b1
commit
9d614a51fb
|
|
@ -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)")
|
||||
|
|
|
|||
Loading…
Reference in New Issue