mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +01:00
Try to fix docker hub build
This commit is contained in:
parent
5e61014e98
commit
41ec337ba0
1 changed files with 3 additions and 2 deletions
|
@ -12,14 +12,15 @@ echo "BUILD_ARCH: ${BUILD_ARCH}"
|
||||||
# whether this is a hassio build
|
# whether this is a hassio build
|
||||||
declare IS_HASSIO
|
declare IS_HASSIO
|
||||||
echo "IS_HASSIO: ${IS_HASSIO}"
|
echo "IS_HASSIO: ${IS_HASSIO}"
|
||||||
|
echo "PWD: $PWD"
|
||||||
|
|
||||||
if [[ ${IS_HASSIO} = "YES" ]]; then
|
if [[ ${IS_HASSIO} = "YES" ]]; then
|
||||||
docker build \
|
docker build \
|
||||||
--build-arg "BUILD_FROM=esphome/esphome-hassio-base-${BUILD_ARCH}:1.0.0" \
|
--build-arg "BUILD_FROM=esphome/esphome-hassio-base-${BUILD_ARCH}:1.0.0" \
|
||||||
--build-arg "BUILD_VERSION=${CACHE_TAG}" \
|
--build-arg "BUILD_VERSION=${CACHE_TAG}" \
|
||||||
-t "${IMAGE_NAME}" -f docker/Dockerfile.hassio .
|
-t "${IMAGE_NAME}" -f ../docker/Dockerfile.hassio .
|
||||||
else
|
else
|
||||||
docker build \
|
docker build \
|
||||||
--build-arg "BUILD_FROM=esphome/esphome-base-${BUILD_ARCH}:1.0.0" \
|
--build-arg "BUILD_FROM=esphome/esphome-base-${BUILD_ARCH}:1.0.0" \
|
||||||
-t "${IMAGE_NAME}" -f docker/Dockerfile .
|
-t "${IMAGE_NAME}" -f ../docker/Dockerfile .
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue