summaryrefslogtreecommitdiffstats
path: root/.gitlab
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-09-16 19:23:52 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-09-16 20:09:01 (GMT)
commit9671282bcc2c80d92ea955805d93cc7afc35bde9 (patch)
treefffa89d8253444321f08347ef8050b566897c350 /.gitlab
parent5138be9558ad04279a37695280cd195d07d9a40d (diff)
downloadCMake-9671282bcc2c80d92ea955805d93cc7afc35bde9.zip
CMake-9671282bcc2c80d92ea955805d93cc7afc35bde9.tar.gz
CMake-9671282bcc2c80d92ea955805d93cc7afc35bde9.tar.bz2
gitlab-ci: add a job to upload macOS binaries
Diffstat (limited to '.gitlab')
-rw-r--r--.gitlab/upload.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.gitlab/upload.yml b/.gitlab/upload.yml
new file mode 100644
index 0000000..924e7de
--- /dev/null
+++ b/.gitlab/upload.yml
@@ -0,0 +1,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" build/ kitware@public.kitware.com:$RSYNC_DESTINATION/