.gitlab-ci.yml 611 Bytes
Newer Older
1
2
3
stages:
  - build
  - deploy
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
31
32
beamer-build:
  image: aergus/latex
  stage: build
  script:
    - make
  artifacts:
    paths:
      - "*.pdf"
    expire_in: 5 years
  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/adv/
  after_script:
    - rm id_rsa
  dependencies:
    - beamer-build
  tags:
    - linux