Fix build error
This commit is contained in:
parent
683ec08c05
commit
dd1e4f3615
1 changed files with 3 additions and 1 deletions
|
@ -109,7 +109,6 @@ mkdir -p "$WORKSPACE"
|
|||
|
||||
cp ../../supervisor/Dockerfile "$WORKSPACE/Dockerfile"
|
||||
sed -i "s/%%BASE_IMAGE%%/${BASE_IMAGE}/g" "$WORKSPACE/Dockerfile"
|
||||
echo "LABEL io.hass.version=\"$DOCKER_TAG\" io.hass.arch=\"$ARCH\" io.hass.type=\"supervisor\"" >> "$WORKSPACE/Dockerfile"
|
||||
|
||||
git clone --depth 1 -b "$BRANCH" "$REPOSITORY" "$WORKSPACE/hassio_api"
|
||||
DOCKER_TAG="$(python3 "$WORKSPACE/hassio_api/setup.py" -V)"
|
||||
|
@ -119,6 +118,9 @@ if [ -z "$DOCKER_TAG" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
echo "LABEL io.hass.version=\"$DOCKER_TAG\" io.hass.arch=\"$ARCH\" io.hass.type=\"supervisor\"" >> "$WORKSPACE/Dockerfile"
|
||||
echo "[INFO] prepare $DOCKER_IMAGE:$DOCKER_TAG done"
|
||||
|
||||
# Run build
|
||||
echo "[INFO] start docker build"
|
||||
docker stop $BUILD_CONTAINER_NAME 2> /dev/null || true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue