.gitlab-ci.yml 614 Bytes
Newer Older
Christophe Benz's avatar
Christophe Benz committed
1
image: jailbreakparis/validata-doc:latest
Christophe Benz's avatar
Christophe Benz committed
2 3 4 5 6 7 8 9 10 11

before_script:
  # Run ssh-agent (inside the build environment).
  - eval $(ssh-agent -s)

  # Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store.
  - ssh-add <(echo "$SSH_PRIVATE_KEY")

  # Add the SSH keys of remote Git servers, to disable host key checking questions.
  - mkdir -p ~/.ssh
Christophe Benz's avatar
Christophe Benz committed
12
  - ssh-keyscan -t rsa go.validata.fr >> ~/.ssh/known_hosts
Christophe Benz's avatar
Christophe Benz committed
13 14 15

job:
  stage: build
16
  variables:
Christophe Benz's avatar
Christophe Benz committed
17
    PDF_FILE: Socle Commun des Données Locales.pdf
Christophe Benz's avatar
Christophe Benz committed
18
  script:
Christophe Benz's avatar
Christophe Benz committed
19
    - ./build.sh
Christophe Benz's avatar
Christophe Benz committed
20
    - rsync -avz --delete _book/ "$PDF_FILE" validata@go.validata.fr:validata-doc-html/