Skip to content

Commit

Permalink
Merge e272326 into 34332ce
Browse files Browse the repository at this point in the history
  • Loading branch information
erjiaqing authored Feb 1, 2023
2 parents 34332ce + e272326 commit 2044489
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@
# This script expects to find a Dockerfile next to $0, so symlink
# in an image name directory is the expected use case.

me=$(basename "$0")
cd "$(dirname "$0")"
set +xe

SOURCE=${BASH_SOURCE[0]}
cd "$(dirname "$SOURCE")"

SOURCE_DIR=$PWD

ORG=${DOCKER_BUILD_ORG:-connectedhomeip}

Expand All @@ -35,6 +39,8 @@ VERSION=${DOCKER_BUILD_VERSION:-$(sed 's/ .*//' version)}

GITHUB_ACTION_RUN=${GITHUB_ACTION_RUN:-"0"}

REPO_DIR="$SOURCE_DIR/../../../../"

# The image build will clone its own ot-br-posix checkout due to limitations of git submodule.
# Using the same ot-br-posix version as chip
OT_BR_POSIX=$REPO_DIR/third_party/ot-br-posix/repo
Expand Down Expand Up @@ -85,10 +91,6 @@ else
fi
fi

SOURCE=${BASH_SOURCE[0]}
SOURCE_DIR=$(cd "$(dirname "$SOURCE")" >/dev/null 2>&1 && pwd)
REPO_DIR="$SOURCE_DIR/../../../../"

docker build -t "$ORG/$IMAGE" -f "$SOURCE_DIR/Dockerfile" "${BUILD_ARGS[@]}" --build-arg OT_BR_POSIX_CHECKOUT="$OT_BR_POSIX_CHECKOUT" "$SOURCE_DIR"

if [[ -n GITHUB_ACTION_RUN ]]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
me=$(basename "$0")
cd "$(dirname "$0")"

SOURCE=${BASH_SOURCE[0]}
SOURCE_DIR=$(cd "$(dirname "$SOURCE")" >/dev/null 2>&1 && pwd)
REPO_DIR="$SOURCE_DIR/../../../../"

# The image build will clone its own ot-br-posix checkout due to limitations of git submodule.
# Using the same ot-br-posix version as chip
OT_BR_POSIX=$REPO_DIR/third_party/ot-br-posix/repo
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.20
0.4.21

0 comments on commit 2044489

Please sign in to comment.