CI: also build apps whose images don't exist yet
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m14s

Handles first deploy — images aren't in the local registry yet,
so they must be built even if the diff doesn't touch app dirs.
This commit is contained in:
giles
2026-02-24 20:03:54 +00:00
parent 1b3922d46d
commit dd309ca894

View File

@@ -59,7 +59,8 @@ jobs:
fi
for app in blog market cart events federation account; do
if [ \"\$REBUILD_ALL\" = true ] || echo \"\$CHANGED\" | grep -q \"^\$app/\"; then
IMAGE_EXISTS=\$(docker image ls -q ${{ env.REGISTRY }}/\$app:latest 2>/dev/null)
if [ \"\$REBUILD_ALL\" = true ] || echo \"\$CHANGED\" | grep -q \"^\$app/\" || [ -z \"\$IMAGE_EXISTS\" ]; then
echo \"Building \$app...\"
docker build \
--build-arg CACHEBUST=\$(date +%s) \