Skip to content
Snippets Groups Projects

ci: remove aggregated directory from previous runs

Merged Zygmunt Krynicki requested to merge zyga/oniro-docs:fix/cleanup into main
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
+ 4
1
@@ -145,7 +145,10 @@ deploy:
@@ -145,7 +145,10 @@ deploy:
name: registry.ostc-eu.org/ostc/oniro/docs-builder:latest
name: registry.ostc-eu.org/ostc/oniro/docs-builder:latest
stage: deploy
stage: deploy
script:
script:
# We are in the root of the git-repo workspace.
# We are in the root of the git-repo workspace. Because
 
# .oniro-repo-workspace uses GIT_STRATEGY=none, the workspace is not
 
# cleaned automatically.
 
- rm -rf aggregated
- git clone https://user:$CI_ONIRO_AGGREGATED_DOCS_TOKEN@gitlab.eclipse.org/eclipse/oniro-core/oniro-readthedocs-aggregated.git aggregated
- git clone https://user:$CI_ONIRO_AGGREGATED_DOCS_TOKEN@gitlab.eclipse.org/eclipse/oniro-core/oniro-readthedocs-aggregated.git aggregated
- find aggregated -maxdepth 1 -not -path aggregated/.git -not -path aggregated -exec rm -rvf {} \;
- find aggregated -maxdepth 1 -not -path aggregated/.git -not -path aggregated -exec rm -rvf {} \;
- tar -c --dereference -C docs --exclude ./.git --exclude ./.gitlab-ci.yml . | tar -x -C aggregated
- tar -c --dereference -C docs --exclude ./.git --exclude ./.gitlab-ci.yml . | tar -x -C aggregated
Loading