Skip to content

Commit

Permalink
Disable annoying docker cli hints. Fix undefined var.
Browse files Browse the repository at this point in the history
  • Loading branch information
charlielye committed Mar 5, 2024
1 parent 46063da commit cc6d374
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build-system/scripts/build_local
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ for E in "${PROJECTS[@]}"; do
if [ -z "$NO_CACHE" ] && docker image ls --format "{{.Repository}}:{{.Tag}}" | grep -q -w "$CACHE_IMAGE_URI$"; then
echo -e "${GREEN}Image exists locally. Tagging as $DEPLOY_IMAGE_URI${RESET}"
else
if [ -n "$USE_CACHE" ] && image_exists $REPO $TAG ; then
if [ -n "${USE_CACHE:-}" ] && image_exists $REPO $TAG ; then
docker pull $CACHE_IMAGE_URI
else
docker build ${ADDITIONAL_ARGS:-} --build-arg COMMIT_HASH=$COMMIT_HASH -f $DOCKERFILE -t $CACHE_IMAGE_URI .
Expand Down
1 change: 1 addition & 0 deletions build-system/scripts/setup_env
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ echo export DEPLOY_TAG=${DEPLOY_TAG:-} >> $BASH_ENV
echo export BRANCH=$BRANCH >> $BASH_ENV
echo export PULL_REQUEST=$PULL_REQUEST >> $BASH_ENV
echo export DRY_DEPLOY=${DRY_DEPLOY:-0} >> $BASH_ENV
echo export DOCKER_CLI_HINTS=false >> $BASH_ENV

# We want very strict failures on any failing command, undefined variable, or commands that pipe to other commands.
echo set -euo pipefail >> $BASH_ENV
Expand Down

0 comments on commit cc6d374

Please sign in to comment.