Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Amirault <mamirault@gitlab.com>2022-10-28 03:30:08 +0300
committerMarcel Amirault <mamirault@gitlab.com>2022-10-28 03:30:08 +0300
commit2bd6f79dbf75808c91eca876d35c2439be7d9bea (patch)
treee198784ec1947f14481ae8236be744b8bed8f0a3 /scripts
parent6725b7ade62ba4151bed7a6a1610c8960827f4d0 (diff)
Clean environment before deploying review app
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/deploy-review-app3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/deploy-review-app b/scripts/deploy-review-app
index f657e697..276e375a 100755
--- a/scripts/deploy-review-app
+++ b/scripts/deploy-review-app
@@ -62,6 +62,9 @@ if [ "$DEPLOY_DELETE_APP" = 'true' ]; then
echo "gsutil -m rm -r \"$dest\""
gsutil -m rm -r "$dest"
else
+ echo "Making sure review app environment in ${dest} is empty..."
+ echo "gsutil -m rm -r \"$dest\""
+ gsutil -m rm -r "$dest"
echo "Deploying review app to ${dest}..."
echo "gsutil -h \"Cache-Control:public, max-age=$cache_control_max_age\" -m cp -z css,html,js,txt -c -r \"$src\" \"$dest\""
with_backoff gsutil -h "Cache-Control:public, max-age=$cache_control_max_age" -m cp -z css,html,js,txt -c -r "$src" "$dest"