From cf166e83ff7cd87d3c6336f3009b03613a51a5c7 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 9 May 2026 23:25:13 +0000 Subject: [PATCH] refactor(deploy): pull base images before building in deploy-all.sh Update deploy-all.sh to pull shared base images before building, ensuring all repos use the latest common package versions. Changes: - Add base image pull step (backend and web) - Use local cache if pull fails - Apply to all repos in deployment list Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- deploy-all.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deploy-all.sh b/deploy-all.sh index 05604e8..801cd4d 100755 --- a/deploy-all.sh +++ b/deploy-all.sh @@ -127,6 +127,12 @@ deploy_repo() { # ── Build and Deploy ─────────────────────────────────────────────── if [ -f "docker-compose.yml" ]; then log "Building and deploying $repo..." + + # Pull latest base images + log "Pulling latest base images for $repo..." + docker pull bytelyst-common-base-backend:latest || warn "Failed to pull backend base image for $repo, using local cache" + docker pull bytelyst-common-base-web:latest || warn "Failed to pull web base image for $repo, using local cache" + docker compose build || fail "Docker build failed for $repo" docker compose up -d || fail "Docker compose up failed for $repo" ok "Deployment completed for $repo"