.gitlab-ci.yml 630 Bytes
Newer Older
1 2 3
stages:
  - build
  - deploy
Remy Huet's avatar
Remy Huet committed
4

5 6 7 8 9 10 11 12 13 14
beamer-build:
  image: aergus/latex
  stage: build
  script:
    - make
  artifacts:
    paths:
      - "*.pdf"
  tags:
    - docker
15 16
  only:
    - master
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

synchronize:
  stage: deploy
  before_script:
    - apt-get update -y
    - apt-get install -y rsync
    - echo "$ssh_key" > id_rsa
    - chmod 600 id_rsa
  script:
    # In non-interactive context, don't check host identity
    - rsync -e"ssh -i id_rsa -o StrictHostKeyChecking=no" -avz *.pdf apiInit@pica02.picasoft.net:~/artefact/git/
  after_script:
    - rm id_rsa
  dependencies:
    - beamer-build
  tags:
33 34 35
    - linux
  only:
    - master