File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -130,12 +130,16 @@ nightly-docs:
130
130
131
131
deploy_nightlies :
132
132
stage : deploy
133
+ before_script :
134
+ - apk update && apk add openssh-client rsync
133
135
script :
134
- - ' which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
135
136
- eval $(ssh-agent -s)
136
137
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
137
138
- mkdir -p ~/.ssh
138
139
- chmod 700 ~/.ssh
139
- - scp -P ${DEPLOY_PORT} ./output ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}
140
+ - export DIRECTORY="$(cat VERSION.txt)~git#$CI_COMMIT_SHORT_SHA"
141
+ - rsync -e "ssh -o StrictHostKeyChecking=no -p ${DEPLOY_PORT}" -r ./output/* ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}/${DIRECTORY}/
140
142
only :
141
143
- master
144
+ except :
145
+ - tags
You can’t perform that action at this time.
0 commit comments