Verified Commit 88898091 authored by Adrian Pascu's avatar Adrian Pascu
Browse files

Add `robots.txt` to disable indexing on staging environment

parent 6c923300
Loading
Loading
Loading
Loading
Loading
+1
Changes for .gitlab-ci.yml: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -115,6 +115,7 @@ Deploy Staging:
    - chmod 644 ~/.ssh/known_hosts
    - BUILD_ID=$(date +%Y.%m.%d-$CI_COMMIT_SHORT_SHA)
    - echo "The build id is $BUILD_ID"
    - 'echo -e "User-agent: *\nDisallow: /" > public/robots.txt'
    - |
      tar cz public | 
      ssh gitlab@staging.hsbxl.be "find /www/versions/* -type d -mtime +10 -exec rm -rf {} \; ;