Commit 4b655946 authored by Antoine Regimbeau's avatar Antoine Regimbeau

ENH: remove old source file

parent 05066cc1
Pipeline #1676 passed with stages
in 15 minutes and 22 seconds
......@@ -202,20 +202,23 @@ deploy:
#Nothing to do here
- echo "No clone"
script:
# Create today directory
# Create today's directory
- ssh otbpush@otb5-vm2.orfeo-toolbox.org mkdir -p /home/otbpush/test/$(date +%F)
# Delete latest
- ssh otbpush@otb5-vm2.orfeo-toolbox.org rm -rf /home/otbpush/test/latest
# Create symilinl
# Create symilink
- ssh otbpush@otb5-vm2.orfeo-toolbox.org ln -s /home/otbpush/test/$(date +%F) /home/otbpush/test/latest
# Push package
- scp packages-*.run otbpush@otb5-vm2.orfeo-toolbox.org:/home/otbpush/test/$(date +%F)/
# Push doc
#- scp doc otbpush@otb5-vm2.orfeo-toolbox.org:/home/otbpush/test/$(date +%F)/
# Create zip, tar.gz and tar.xy source and push on otb5-vm2
# Create zip, tar.gz and tar.xy source
- git archive --format=zip -o OTB-develop-$CI_COMMIT_SHORT_SHA.zip HEAD
- git archive --format=tgz -o OTB-develop-$CI_COMMIT_SHORT_SHA.tar.gz HEAD
- git archive --format=tar.xz -o OTB-develop-$CI_COMMIT_SHORT_SHA.tar.xz HEAD
# Remove old source file
- ssh otbpush@otb5-vm2.orfeo-toolbox.org rm /home/otbpush/test/$(date +%F)/OTB-develop-*.zip /home/otbpush/test/$(date +%F)/OTB-develop-*.tar.*
# Push new source file
- scp OTB-develop-$CI_COMMIT_SHORT_SHA.* otbpush@otb5-vm2.orfeo-toolbox.org:/home/otbpush/test/$(date +%F)/
\ No newline at end of file
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