[docker] correct commit to build otsim (#6634)

This commit is contained in:
Yakun Xu
2021-05-14 23:43:56 -07:00
committed by Jonathan Hui
parent b4c98045b7
commit 1b72b2d82e
2 changed files with 7 additions and 4 deletions
+1
View File
@@ -66,6 +66,7 @@ jobs:
echo ::set-output name=docker_image::${DOCKER_IMAGE}
echo ::set-output name=version::${VERSION}
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
--build-arg OT_GIT_REF=${{ github.sha }} \
--build-arg VERSION=${VERSION} \
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
--build-arg VCS_REF=${GITHUB_SHA::8} \
+6 -4
View File
@@ -2,6 +2,7 @@
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
ARG OT_GIT_REF=main
# Install dependencies:
RUN apt-get update -qq
@@ -12,10 +13,11 @@ RUN apt-get --no-install-recommends install -y git sudo software-properties-comm
&& update-ca-certificates
# Install OpenThread
RUN mkdir -p ~/src && \
cd ~/src && \
git clone --recursive https://github.com/openthread/openthread.git && \
cd openthread && \
RUN mkdir -p ~/src/openthread && \
cd ~/src/openthread && \
git init . && \
git fetch https://github.com/openthread/openthread.git ${OT_GIT_REF} && \
git checkout FETCH_HEAD && \
./script/bootstrap && \
./bootstrap && \
make -f examples/Makefile-simulation