summaryrefslogtreecommitdiffstats
path: root/.gitlab/upload.yml
blob: 8b8daa106ff3a8c7afb32b5713ddd5b51484eed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Steps for uploading artifacts

.rsync_upload:
    image: "fedora:32"
    stage: upload
    tags:
        - 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/