support new custom base image
This commit is contained in:
parent
1deca61b2b
commit
73ca00d129
1 changed files with 3 additions and 1 deletions
|
@ -134,10 +134,12 @@ echo "[INFO] Setup dockerfile"
|
|||
sed -i "s/{arch}/${ARCH}/g" "$ADDON_WORKSPACE/config.json"
|
||||
DOCKER_TAG=$(jq --raw-output ".version" "$ADDON_WORKSPACE/config.json")
|
||||
|
||||
# if set custom image in file
|
||||
# If set custom image in file
|
||||
DOCKER_IMAGE=$(jq --raw-output ".image // empty" "$ADDON_WORKSPACE/config.json")
|
||||
|
||||
# Replace hass.io vars
|
||||
sed -i "s/%%BASE_IMAGE%%/${BASE_IMAGE}/g" "$ADDON_WORKSPACE/Dockerfile"
|
||||
sed -i "s/#${ARCH}:FROM/FROM/g" "$ADDON_WORKSPACE/Dockerfile"
|
||||
sed -i "s/%%ARCH%%/${ARCH}/g" "$ADDON_WORKSPACE/Dockerfile"
|
||||
echo "LABEL io.hass.version=\"$DOCKER_TAG\" io.hass.arch=\"$ARCH\" io.hass.type=\"addon\"" >> "$ADDON_WORKSPACE/Dockerfile"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue