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>
This commit is contained in:
root 2026-05-09 23:25:13 +00:00
parent b545fe0d1c
commit cf166e83ff

View File

@ -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"