1
0
mirror of git://f0xx.org/ac/ac-deploy synced 2026-08-12 18:12:19 +03:00

Cluster builder: docker home config and prepare-be-builder-dirs.

Add nginx/nobody writable docker config dir, nightly channel in hub sync.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-08-07 22:16:02 +02:00
parent e1a7732712
commit 9dbf4ae04f
3 changed files with 34 additions and 3 deletions

View File

@@ -138,6 +138,7 @@ overlay_lab_seed_api() {
fi
}
overlay_lab_seed_api media_pipelines.php
overlay_lab_seed_api grafana-auth-check.php
overlay_lab_seed_public() {
_rel="$1"
@@ -363,6 +364,7 @@ $config['build'] = array_merge([
'ci_version' => '00.01.00.1000',
'repo_root' => '/var/www/ac/workspace',
'artifacts_root' => '/var/www/ac/broadcast/builds',
'docker_home' => '/var/www/ac/broadcast',
'ota_mount' => '/var/www/localhost/htdocs/apps/app/androidcast_project/ota-artifacts',
'downloads_mount' => '/var/www/localhost/htdocs/apps/app/androidcast_project/downloads',
'ota_base_url' => 'https://apps.f0xx.org',

View File

@@ -20,9 +20,9 @@ else
log "WARN: Session Studio jar not built at ${STUDIO_JAR}"
fi
# Prefer staging channel APK; fall back to stable.
# Prefer nightly (latest CI), then staging, then stable.
apk_src=""
for ch in staging stable; do
for ch in nightly staging stable; do
channel_json="${OTA_ROOT}/channel/${ch}.json"
[ -f "$channel_json" ] || continue
manifest_url="$(sed -n 's/.*"manifestUrl"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' "$channel_json" | head -1)"
@@ -54,7 +54,7 @@ if [ -n "$apk_src" ]; then
install -m 644 "$apk_src" "${DOWNLOADS_ROOT}/${base}.apk"
log "installed APK → ${DOWNLOADS_ROOT}/android_cast-latest.apk (from ${apk_src})"
else
log "WARN: no OTA .apk/.otapkg found under ${OTA_ROOT}/channel/{staging,stable}.json"
log "WARN: no OTA .apk/.otapkg found under ${OTA_ROOT}/channel/{nightly,staging,stable}.json"
fi
chown -R nginx:nginx "$DOWNLOADS_ROOT" 2>/dev/null || true