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

publish job: use new variables

parent c0884a33
No related branches found
No related tags found
1 merge request!6publish guide to server
Pipeline #23677 failed
...@@ -24,11 +24,11 @@ publish_guide: ...@@ -24,11 +24,11 @@ publish_guide:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- chmod 700 ~/.ssh - chmod 700 ~/.ssh
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - - echo -n "$SSH_PRIVATE_KEY" | ssh-add -
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts - echo "$PUBLISH_HOST" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
script: script:
- 'scp -v angelguide_??.pdf $PUBLISHING_HOST:' - 'rsync -av angelguide_*.pdf $PUBLISH_USER@$PUBLISH_HOST:$PUBLISH_PATH'
# rules: # rules:
# - if: '$CI_COMMIT_REF_NAME == "master"' # - if: '$CI_COMMIT_REF_NAME == "master"'
# when: on_success # when: on_success
......
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