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

fiddle with ssh

parent 39443508
No related branches found
No related tags found
1 merge request!6publish guide to server
Pipeline #23706 failed
...@@ -21,6 +21,7 @@ publish_guide: ...@@ -21,6 +21,7 @@ publish_guide:
stage: publish stage: publish
image: kroniak/ssh-client image: kroniak/ssh-client
before_script: before_script:
- apk update
- apk add rsync - apk add rsync
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- chmod 700 ~/.ssh - chmod 700 ~/.ssh
...@@ -29,6 +30,7 @@ publish_guide: ...@@ -29,6 +30,7 @@ publish_guide:
- ssh-keyscan -H "$PUBLISH_HOST" >> ~/.ssh/known_hosts - ssh-keyscan -H "$PUBLISH_HOST" >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
script: script:
- 'ssh $PUBLISH_USER@$PUBLISH_HOST rsync --version'
- 'rsync -av angelguide_*.pdf $PUBLISH_USER@$PUBLISH_HOST:$PUBLISH_PATH' - 'rsync -av angelguide_*.pdf $PUBLISH_USER@$PUBLISH_HOST:$PUBLISH_PATH'
# rules: # rules:
# - if: '$CI_COMMIT_REF_NAME == "master"' # - if: '$CI_COMMIT_REF_NAME == "master"'
......
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