mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-13 18:49:38 -06:00
The latter tags are now available on our CI runners to more explicitly
distinguish `linux-x86_64` from `linux-aarch64` and to distinguish
`{macos,windows}-x86_64` from `{macos,windows}-arm64`.
This backports commit 33fe37a660 (gitlab-ci: replace '{macos,windows}'
tags with '{macos,windows}-x86_64', 2022-11-30) and commit 94d82d91d5
(gitlab-ci: replace 'linux' tags with 'linux-x86_64', 2022-11-30) to
the 3.25 release branch.
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
# Steps for uploading artifacts
|
|
|
|
.rsync_upload_package:
|
|
image: "fedora:36"
|
|
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/ kitware@cmake.org:$RSYNC_DESTINATION/
|
|
|
|
.rsync_upload_help:
|
|
stage: upload
|
|
image: "fedora:36"
|
|
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/ kitware@cmake.org:$RSYNC_DESTINATION/
|