From f390b7146a678821c63e08136f1c8921351b1c24 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Thu, 10 Jan 2019 12:25:28 +0100 Subject: [PATCH] Push artifact to school (CI) and update link in README --- .gitlab-ci.yml | 42 +++++++++++++++++++++++++++++++----------- README.md | 2 +- 2 files changed, 32 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6184cb2..a1d7b20 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,32 @@ -image: aergus/latex +stages: + - build + - deploy -beamer-build : - stage : build - script : - - make - artifacts: - paths: - - "*.pdf" - expire_in: 5 years - tags: - - docker +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/sh/ + after_script: + - rm id_rsa + dependencies: + - beamer-build + tags: + - linux \ No newline at end of file diff --git a/README.md b/README.md index e8e380d..7e77a04 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ En cas de remarques sur la présentation (ou de questions aussi), vous pouvez ut ## Présentation -La présentation au format PDF est disponible [ici](https://gitlab.utc.fr/picasoft/apis/h19/init/sh/-/jobs/artifacts/master/raw/main.pdf?job=beamer-build) +La présentation au format PDF est disponible [ici](https://school.picasoft.net/artefact/sh/main.pdf). ## Contribuer ! -- 2.22.0