upload.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Steps for uploading artifacts
  2. .rsync_upload_package:
  3. image: "fedora:43"
  4. stage: upload
  5. tags:
  6. - cmake
  7. - docker
  8. - linux-x86_64
  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. - test -n "$RSYNC_DESTINATION"
  18. - rsync -tv --recursive -e "ssh -i $RSYNC_BINARY_KEY -o StrictHostKeyChecking=no -o LogLevel=ERROR" build/ "$RSYNC_DESTINATION"
  19. .rsync_upload_help:
  20. stage: upload
  21. image: "fedora:43"
  22. tags:
  23. - cmake
  24. - docker
  25. - linux-x86_64
  26. - build
  27. environment:
  28. name: rsync-upload
  29. script:
  30. - ls build/html/index.html
  31. - dnf install -y --setopt=install_weak_deps=False rsync openssh-clients
  32. - chmod 400 $RSYNC_HELP_KEY
  33. - ssh-keygen -y -f $RSYNC_HELP_KEY > $RSYNC_HELP_KEY.pub
  34. - test -n "$RSYNC_DESTINATION"
  35. - rsync -tv --recursive --delete -e "ssh -i $RSYNC_HELP_KEY -o StrictHostKeyChecking=no -o LogLevel=ERROR" build/html/ "$RSYNC_DESTINATION"