Skip to content

Commit

Permalink
dockerBuild.sh: set -e, cd $(dirname $0)
Browse files Browse the repository at this point in the history
  • Loading branch information
K committed May 23, 2024
1 parent 6639289 commit 4b3e845
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deploy/docker/dockerBuild.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/bin/bash

set -e

STATUS=$(git status --porcelain | grep -c '^')

if [[ "$STATUS" != "0" ]]
then
echo "Cowardly refusing to build with a dirty git"
exit 1
fi

cd $(dirname $0)

# Get the current commit hash of the repository
COMMIT=$(git rev-parse --short HEAD)

Expand Down

0 comments on commit 4b3e845

Please sign in to comment.