upload.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Steps for uploading artifacts
  2. .rsync_upload_binary:
  3. image: "fedora:35"
  4. stage: upload
  5. tags:
  6. - cmake
  7. - docker
  8. - linux
  9. - build
  10. environment:
  11. name: rsync-upload
  12. script:
  13. - ls build/
  14. - dnf install -y --setopt=install_weak_deps=False rsync openssh-clients
  15. - chmod 400 $RSYNC_BINARY_KEY
  16. - ssh-keygen -y -f $RSYNC_BINARY_KEY > $RSYNC_BINARY_KEY.pub
  17. - rsync -tv --recursive -e "ssh -i $RSYNC_BINARY_KEY -o StrictHostKeyChecking=no -o LogLevel=ERROR" build/ [email protected]:$RSYNC_DESTINATION/
  18. .rsync_upload_help:
  19. stage: upload
  20. image: "fedora:35"
  21. tags:
  22. - cmake
  23. - docker
  24. - linux
  25. - build
  26. environment:
  27. name: rsync-upload
  28. script:
  29. - ls build/html/index.html
  30. - dnf install -y --setopt=install_weak_deps=False rsync openssh-clients
  31. - chmod 400 $RSYNC_HELP_KEY
  32. - ssh-keygen -y -f $RSYNC_HELP_KEY > $RSYNC_HELP_KEY.pub
  33. - rsync -tv --recursive --delete -e "ssh -i $RSYNC_HELP_KEY -o StrictHostKeyChecking=no -o LogLevel=ERROR" build/html/ [email protected]:$RSYNC_DESTINATION/