https://github.com/Kitware/CMake
Raw File
Tip revision: f7cf69e34a1607e8ea2b6d10fef6a6058377c24e authored by Brad King on 27 July 2021, 13:29:13 UTC
CMake 3.21.1
Tip revision: f7cf69e
upload.yml
# Steps for uploading artifacts

.rsync_upload_binary:
    image: "fedora:34"
    stage: upload
    tags:
        - cmake
        - docker
        - linux
        - build
    environment:
        name: rsync-upload

    script:
        - ls build/
        - dnf install -y --setopt=install_weak_deps=False rsync openssh-clients
        - chmod 400 $RSYNC_BINARY_KEY
        - ssh-keygen -y -f $RSYNC_BINARY_KEY > $RSYNC_BINARY_KEY.pub
        - rsync -tv --recursive -e "ssh -i $RSYNC_BINARY_KEY -o StrictHostKeyChecking=no -o LogLevel=ERROR" build/ kitware@cmake.org:$RSYNC_DESTINATION/

.rsync_upload_help:
    stage: upload
    image: "fedora:34"
    tags:
        - cmake
        - docker
        - linux
        - build
    environment:
        name: rsync-upload

    script:
        - ls build/html/index.html
        - dnf install -y --setopt=install_weak_deps=False rsync openssh-clients
        - chmod 400 $RSYNC_HELP_KEY
        - ssh-keygen -y -f $RSYNC_HELP_KEY > $RSYNC_HELP_KEY.pub
        - rsync -tv --recursive --delete -e "ssh -i $RSYNC_HELP_KEY -o StrictHostKeyChecking=no -o LogLevel=ERROR" build/html/ kitware@cmake.org:$RSYNC_DESTINATION/
back to top