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"
# Create today directory
# Create today's directory
- ssh mkdir -p /home/otbpush/test/$(date +%F)
# Delete latest
- ssh rm -rf /home/otbpush/test/latest
# Create symilinl
# Create symilink
- ssh ln -s /home/otbpush/test/$(date +%F) /home/otbpush/test/latest
# Push package
- scp packages-*.run$(date +%F)/
# Push doc
#- scp doc$(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-$ 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 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.*$(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