mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-28 16:52:26 +01:00
Fix HTTP 429: replace ADD remote URLs with COPY in all Dockerfiles, add retry logic and fix ha_automodules.sh
Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com> Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/2244d014-7299-4b63-89e4-35683a0b4c15
This commit is contained in:
15
.github/workflows/onpush_builder.yaml
vendored
15
.github/workflows/onpush_builder.yaml
vendored
@@ -157,6 +157,21 @@ jobs:
|
||||
fi
|
||||
done
|
||||
|
||||
- name: Copy templates into addon build context
|
||||
env:
|
||||
ADDON: ${{ matrix.addon }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
TEMPLATES_DIR=".templates"
|
||||
ADDON_DIR="./$ADDON"
|
||||
|
||||
# Copy all template scripts that Dockerfiles might reference
|
||||
for script in ha_automodules.sh ha_autoapps.sh ha_entrypoint.sh bashio-standalone.sh ha_lsio.sh; do
|
||||
if [ -f "$TEMPLATES_DIR/$script" ]; then
|
||||
cp "$TEMPLATES_DIR/$script" "$ADDON_DIR/$script"
|
||||
fi
|
||||
done
|
||||
|
||||
- name: Install PyYAML
|
||||
run: python3 -m pip install --disable-pip-version-check pyyaml
|
||||
|
||||
|
||||
Reference in New Issue
Block a user