build 431 B

1234567891011121314
  1. #!/bin/bash
  2. # This file gets executed to build the image on the Docker Hub.
  3. # See https://docs.docker.com/docker-hub/builds/advanced/#build-hook-examples for details.
  4. set -euo pipefail
  5. echo "Building for branch ${SOURCE_BRANCH}, commit ${SOURCE_COMMIT}"
  6. docker build \
  7. --build-arg IDF_CLONE_BRANCH_OR_TAG=${SOURCE_BRANCH} \
  8. --build-arg IDF_CHECKOUT_REF=${SOURCE_COMMIT} \
  9. -f $DOCKERFILE_PATH \
  10. -t $IMAGE_NAME .