Commit 3ec61d0a authored by Thomas Hamel's avatar Thomas Hamel
Browse files

update gitlab-ci.yml

parent 57f42c8b
Loading
Loading
Loading
Loading
Loading
+6 −39
Changes for .gitlab-ci.yml: 6 added lines, 39 removed lines.
Original line number Diff line number Diff line
#update-satis:
#  stage: publish
#  script:
#    - curl https://gest.unicaen.fr/packagist/update


---
variables:
  PROXY_UNICAEN: $HTTPS_PROXY


stages:
  - cleanup-runner
  - tag_this_branch_if_success


cleanup-runner:
  stage: cleanup-runner
  script:
    - docker system prune -af
  

services:
  - docker:dind
  - publish

tag_this_branch_if_success:
  stage: tag_this_branch_if_success
  image:
    name: docker:dind
update-satis:
  stage: publish
  image: curlimages/curl
  script:
    - echo "Configure PROXY Unicaen" && true
    - export http_proxy=$PROXY_UNICAEN
    - export https_proxy=$PROXY_UNICAEN
    - echo "Installation of packages" && true
    - apk update
    - apk add git
    - apk add php
    - git config --global user.email "gitlab-runner@mail.com"
    - git config --global user.name "Gitlab runner"
    - git clone https://git.unicaen.fr/lib/unicaen/parametre.git
    - cd parametre/ 
    - git tag -n $(git describe --tags --abbrev=0) 
    - export no_proxy=localhost,unicaen.fr
    - curl https://packagist.unicaen.fr/build?name=unicaen/parametre