Commit 3b6dc447 authored by Lukas 'Eipi' Eipert's avatar Lukas 'Eipi' Eipert

Ensure that source directory is cleared after rsync

parent 82f88dd3
Pipeline #35091687 passed with stages
in 37 minutes and 5 seconds
......@@ -195,6 +195,7 @@ review:
GIT_STRATEGY: none
script:
- rsync --ignore-times --checksum --delete -avz public ~/pages/$CI_COMMIT_REF_SLUG
- rm -rf ./public/
environment:
name: review/$CI_COMMIT_REF_SLUG
url: http://$CI_COMMIT_REF_SLUG.about.gitlab.com
......@@ -216,7 +217,7 @@ review_stop:
variables:
GIT_STRATEGY: none
script:
- rm -rf public ~/pages/$CI_COMMIT_REF_SLUG
- rm -rf ~/pages/$CI_COMMIT_REF_SLUG
when: manual
environment:
name: review/$CI_COMMIT_REF_SLUG
......@@ -239,6 +240,7 @@ deploy:
before_script: []
script:
- rsync --ignore-times --checksum --delete -avz public/ ~/public/
- rm -rf ./public/
environment:
name: production
url: https://about.gitlab.com
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment