https://github.com/Kitware/CMake
Raw File
Tip revision: 928571f3c25637ed7d38fb100b3966ce1e2ab51f authored by Brad King on 16 July 2024, 17:14:29 UTC
CMake 3.29.7
Tip revision: 928571f
upload.yml
# Steps for uploading artifacts

.rsync_upload_package:
    image: "fedora:39"
    stage: upload
    tags:
        - cmake
        - docker
        - linux-x86_64
        - 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
        - test -n "$RSYNC_DESTINATION"
        - rsync -tv --recursive -e "ssh -i $RSYNC_BINARY_KEY -o StrictHostKeyChecking=no -o LogLevel=ERROR" build/ "$RSYNC_DESTINATION"

.rsync_upload_help:
    stage: upload
    image: "fedora:39"
    tags:
        - cmake
        - docker
        - linux-x86_64
        - 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
        - test -n "$RSYNC_DESTINATION"
        - rsync -tv --recursive --delete -e "ssh -i $RSYNC_HELP_KEY -o StrictHostKeyChecking=no -o LogLevel=ERROR" build/html/ "$RSYNC_DESTINATION"
back to top