CI: also build apps whose images don't exist yet
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m14s
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:
@@ -59,7 +59,8 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
for app in blog market cart events federation account; do
|
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...\"
|
echo \"Building \$app...\"
|
||||||
docker build \
|
docker build \
|
||||||
--build-arg CACHEBUST=\$(date +%s) \
|
--build-arg CACHEBUST=\$(date +%s) \
|
||||||
|
|||||||
Reference in New Issue
Block a user