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:
authorEvan Read <eread@gitlab.com>2022-10-28 05:10:51 +0300
committerEvan Read <eread@gitlab.com>2022-10-28 05:10:51 +0300
commit7cc65dabf9a8e49001bdddabb549001f1c3fc441 (patch)
tree6f679dffba02b2db17a29be5e2e190ed266dcc69
parent5aa128a84b6b1a81f95196fba4601abc66f57c2e (diff)
parent2bd6f79dbf75808c91eca876d35c2439be7d9bea (diff)
Merge branch 'fix-review-app-redeployments' into 'main'
Clean environment before deploying review app See merge request https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/3222 Merged-by: Evan Read <eread@gitlab.com> Approved-by: Evan Read <eread@gitlab.com> Co-authored-by: Marcel Amirault <mamirault@gitlab.com>
-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"