.gitlab-ci.yml 609 Bytes
Newer Older
1 2 3
stages:
  - build
  - deploy
Rémy Huet's avatar
Rémy Huet committed
4

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

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:
31 32 33
    - linux
  only:
    - master