Skip to content

Commit

Permalink
#841 - disable git_sha injection by default, allow override from .lag…
Browse files Browse the repository at this point in the history
…oon.yml
  • Loading branch information
twardnw committed Feb 5, 2019
1 parent e827717 commit 6d24b71
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion images/oc-build-deploy-dind/build-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ else
/oc-build-deploy/scripts/git-checkout-pull.sh "$SOURCE_REPOSITORY" "$GIT_REF"
fi

LAGOON_GIT_SHA=`git rev-parse HEAD`
INJECT_GIT_SHA=$(cat .lagoon.yml | shyaml get-value environment_variables.git_sha false)
if [ "$INJECT_GIT_SHA" == "true" ]
then
LAGOON_GIT_SHA=`git rev-parse HEAD`
else
LAGOON_GIT_SHA="0000000000000000"
fi

if [[ -n "$SUBFOLDER" ]]; then
cd $SUBFOLDER
Expand Down

0 comments on commit 6d24b71

Please sign in to comment.