Skip to content
Snippets Groups Projects
Commit 39443508 authored by migu's avatar migu
Browse files

publish job: add rsync

parent c91f92d2
No related branches found
No related tags found
Loading
Checking pipeline status
......@@ -21,15 +21,16 @@ publish_guide:
stage: publish
image: kroniak/ssh-client
before_script:
- apk add rsync
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- eval $(ssh-agent -s)
- echo -n "$SSH_PRIVATE_KEY" | ssh-add -
- echo "$PUBLISH_HOST" > ~/.ssh/known_hosts
- ssh-keyscan -H "$PUBLISH_HOST" >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- 'rsync -av angelguide_*.pdf $PUBLISH_USER@$PUBLISH_HOST:$PUBLISH_PATH'
rules:
- if: '$CI_COMMIT_REF_NAME == "master"'
when: on_success
- when: never
# rules:
# - if: '$CI_COMMIT_REF_NAME == "master"'
# when: on_success
# - when: never
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment