Skip to content

Commit

Permalink
[tests only] Fix broken docker context list problem, for docker/for-w…
Browse files Browse the repository at this point in the history
…in/#13180 (ddev#4576)
  • Loading branch information
rfay authored Jan 23, 2023
1 parent 6997e80 commit c2d087c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .buildkite/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ set -o pipefail
set -o nounset
set -x

# Broken docker context list from https://github.com/docker/for-win/issues/13180
# When this is solved this can be removed.
# The only place we care about non-default context is macOS Colima
if ! docker context list >/dev/null; then
rm -rf ~/.docker/contexts && docker context list >/dev/null
fi

# If this is a PR and the diff doesn't have code, skip it
if [ "${BUILDKITE_PULL_REQUEST}" != "false" ] && ! git diff --name-only refs/remotes/origin/${BUILDKITE_PULL_REQUEST_BASE_BRANCH:-} | egrep "^(Makefile|pkg|cmd|vendor|go\.)"; then
echo "Skipping build since no code changes found"
Expand Down

0 comments on commit c2d087c

Please sign in to comment.