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

test artifact publishing with GitLab

parent 9555bc56
No related branches found
No related tags found
No related merge requests found
stages: [ build ] stages:
- build
- publish
job_build: build_guide:
stage: build stage: build
image: ubuntu:latest image: ubuntu:latest
script: script:
...@@ -13,4 +15,22 @@ job_build: ...@@ -13,4 +15,22 @@ job_build:
paths: paths:
- "angelguide_en.pdf" - "angelguide_en.pdf"
- "angelguide_de.pdf" - "angelguide_de.pdf"
expire_in: 12 month expire_in: 12 months
\ No newline at end of file
publish_artifacts:
stage: publish
image: ubuntu:latest
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- 'rsync -v angelguide_??.pdf $PUBLISHING_HOST:'
rules:
- if: '$CI_COMMIT_REF_NAME == "master"'
when: always
- 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