diff options
author | Marcel Amirault <mamirault@gitlab.com> | 2022-10-28 03:30:08 +0300 |
---|---|---|
committer | Marcel Amirault <mamirault@gitlab.com> | 2022-10-28 03:30:08 +0300 |
commit | 2bd6f79dbf75808c91eca876d35c2439be7d9bea (patch) | |
tree | e198784ec1947f14481ae8236be744b8bed8f0a3 /scripts | |
parent | 6725b7ade62ba4151bed7a6a1610c8960827f4d0 (diff) |
Clean environment before deploying review app
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/deploy-review-app | 3 |
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" |