Commit 309ea88b authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

COrrection du .gitlab-ci.yml

parent 637dab33
Loading
Loading
Loading
Loading
Loading
+6 −10
Original line number Diff line number Diff line
stages:
- update-repo-directory
  - publish

repo-update:
  stage: update-repo-directory
update-satis:
  stage: publish
  image: python:3.9
  script:
    - http_proxy=http://10.14.128.99:3128 apt -qq update
    - http_proxy=http://10.14.128.99:3128 apt -qq -y install openssh-client
    - eval $(ssh-agent -s)
    - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
    - mkdir -p ~/.ssh
    - chmod 700 ~/.ssh
    - ssh -o StrictHostKeychecking=no root@10.14.129.37 "cd /var/www/html/packagist/satis && php bin/satis build --verbose unicaen.json /var/www/html/packagist/"
    - apt-get update && apt-get -y upgrade && apt-get -y install curl
    - curl https://gest.unicaen.fr/packagist/update