Skip to content

Commit

Permalink
feat: update HA
Browse files Browse the repository at this point in the history
  • Loading branch information
joryirving committed Jan 26, 2024
1 parent b502225 commit f97fec1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/prepare-matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# read repository owner's username from custom env vars, else read from GitHub Actions default env vars
repo_owner = os.environ.get('REPO_OWNER', os.environ.get('GITHUB_REPOSITORY_OWNER'))

TESTABLE_PLATFORMS = ["linux/amd64", "linux/arm64"]
TESTABLE_PLATFORMS = ["linux/amd64"]

def load_metadata_file_yaml(file_path):
with open(file_path, "r") as f:
Expand Down
13 changes: 6 additions & 7 deletions apps/home-assistant/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ ENV \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_BREAK_SYSTEM_PACKAGES=1 \
ALPINE_WHEELS="https://wheel-index.linuxserver.io/alpine-3.18/" \
HOMEASSISTANT_WHEELS="https://wheel-index.linuxserver.io/homeassistant-3.18/" \
HOMEASSISTANT_WHEELS="https://wheels.home-assistant.io/musllinux/" \
PYTHONPATH="${PYTHONPATH}:/pip-packages" \
HOME="/config"

Expand Down Expand Up @@ -97,7 +96,7 @@ RUN \
&& \
NUMPY_VERSION=$(grep "numpy" requirements_all.txt) \
&& \
pip install --find-links "${ALPINE_WHEELS}" --find-links "${HOMEASSISTANT_WHEELS}" \
pip install --find-links "${HOMEASSISTANT_WHEELS}" \
"${NUMPY_VERSION}" \
&& \
case "${TARGETPLATFORM}" in \
Expand All @@ -111,16 +110,16 @@ RUN \
&& \
HOME_ASSISTANT_BASE=$(curl -fsSL "https://raw.githubusercontent.com/home-assistant/core/${VERSION}/build.yaml" | grep "${ARCH}: " | cut -d ":" -f3) \
&& \
pip install --no-index --only-binary=:all: --find-links "${ALPINE_WHEELS}" --find-links "${HOMEASSISTANT_WHEELS}" \
pip install --no-index --only-binary=:all: --find-links "${HOMEASSISTANT_WHEELS}" \
--requirement "https://raw.githubusercontent.com/home-assistant/docker/${HOME_ASSISTANT_BASE}/requirements.txt" \
&& \
pip install --find-links "${ALPINE_WHEELS}" --find-links "${HOMEASSISTANT_WHEELS}" \
pip install --find-links "${HOMEASSISTANT_WHEELS}" \
--requirement requirements_all.txt \
&& \
pip install --only-binary=:all: --find-links "${ALPINE_WHEELS}" --find-links "${HOMEASSISTANT_WHEELS}" \
pip install --only-binary=:all: --find-links "${HOMEASSISTANT_WHEELS}" \
homeassistant=="${VERSION}" \
&& \
pip install --find-links "${ALPINE_WHEELS}" --find-links "${HOMEASSISTANT_WHEELS}" \
pip install --find-links "${HOMEASSISTANT_WHEELS}" \
pycups PySwitchbot \
&& \
apk del --purge .build-deps \
Expand Down

0 comments on commit f97fec1

Please sign in to comment.