fix(cache): restore backend-to-next revalidation and expose revalidation status safely
Deploy Canina / deploy (push) Successful in 2m57s
Deploy Canina / deploy (push) Successful in 2m57s
This commit is contained in:
1 parent
292ed7f920
commit
741d69289b
6 files changed
+221
-13
No files matched your search
@@ -31,7 +31,7 @@ services:
|
||||
- path: .support-chat.env
|
||||
required: false
|
||||
- path: .revalidation.env
|
||||
required: false
|
||||
required: true
|
||||
dns:
|
||||
- 217.218.127.127
|
||||
- 217.218.155.155
|
||||
@@ -75,7 +75,7 @@ services:
|
||||
- INTERNAL_API_URL=http://backend_stage:3000/api
|
||||
env_file:
|
||||
- path: .revalidation.env
|
||||
required: false
|
||||
required: true
|
||||
dns:
|
||||
- 217.218.127.127
|
||||
- 217.218.155.155
|
||||
|
||||
+6
-2
@@ -105,8 +105,12 @@ if [ ! -s .support-chat.env ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Ensure .revalidation.env exists so compose never fails with missing env file
|
||||
touch .revalidation.env
|
||||
# Ensure .revalidation.env exists and is properly provisioned with valid secret
|
||||
if [ -f "scripts/provision-revalidation-env.py" ]; then
|
||||
python3 scripts/provision-revalidation-env.py --environment "${BRANCH:-stage}" --source .revalidation.env --output .revalidation.env 2>/dev/null || touch .revalidation.env
|
||||
else
|
||||
touch .revalidation.env
|
||||
fi
|
||||
|
||||
# ✅ فایلهای کانفیگ را از پوشهی scripts مخزن به TARGET_DIR کپی میکنیم
|
||||
echo "Copying configuration files in $TARGET_DIR..."
|
||||
|
||||
Reference in new issue
Block a user