We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e833273 commit 0fd1807Copy full SHA for 0fd1807
deploy/build_deploy.sh
@@ -9,7 +9,7 @@ IMAGE_TAG=${IMAGE_TAG-$GIT_REV_SHORT}
9
10
STAGE=false
11
12
-if [[ $(git --no-pager log --oneline -1) == *[STAGE]* ]]; then
+if git --no-pager log -1 --format='%h %s' | grep -Fq '[STAGE]'; then
13
echo "This commit is flagged with [STAGE] and won't go to production"
14
STAGE=true
15
fi
0 commit comments