mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
tools/docker: use correct branch and commit of IDF when building
This commit is contained in:
parent
71d0d08c4e
commit
5a3af62f44
@ -34,6 +34,7 @@ tools/ci/test_configure_ci_environment.sh
|
||||
tools/cmake/convert_to_cmake.py
|
||||
tools/cmake/run_cmake_lint.sh
|
||||
tools/esp_app_trace/apptrace_proc.py
|
||||
tools/elf_to_ld.sh
|
||||
tools/esp_app_trace/logtrace_proc.py
|
||||
tools/format.sh
|
||||
tools/gen_esp_err_to_name.py
|
||||
@ -77,4 +78,5 @@ tools/check_kconfigs.py
|
||||
tools/test_check_kconfigs.py
|
||||
install.sh
|
||||
tools/docker/entrypoint.sh
|
||||
tools/docker/hooks/build
|
||||
tools/idf_tools.py
|
||||
|
14
tools/docker/hooks/build
Executable file
14
tools/docker/hooks/build
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This file gets executed to build the image on the Docker Hub.
|
||||
# See https://docs.docker.com/docker-hub/builds/advanced/#build-hook-examples for details.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
echo "Building for branch ${SOURCE_BRANCH}, commit ${SOURCE_COMMIT}"
|
||||
|
||||
docker build \
|
||||
--build-arg IDF_CLONE_BRANCH_OR_TAG=${SOURCE_BRANCH} \
|
||||
--build-arg IDF_CHECKOUT_REF=${SOURCE_COMMIT} \
|
||||
-f $DOCKERFILE_PATH \
|
||||
-t $IMAGE_NAME .
|
Loading…
Reference in New Issue
Block a user