Commit 02ba7185 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Merge branch 'main' of https://git.unicaen.fr/lib/unicaen/parametre into HEAD

parents 1bfc6d70 ab6887bd
Loading
Loading
Loading
Loading
Loading
+37 −9
Original line number Diff line number Diff line
image: registre.unicaen.fr:5000/unicaen-dev-php7.3-apache
#update-satis:
#  stage: publish
#  script:
#    - curl https://gest.unicaen.fr/packagist/update


---
variables:
  PROXY_UNICAEN: $HTTPS_PROXY


stages:
- publish
  - cleanup-runner
  - tag_this_branch_if_success


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

cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
  - vendor/
services:
  - docker:dind

update-satis:
  stage: publish
tag_this_branch_if_success:
  stage: tag_this_branch_if_success
  image:
    name: docker:dind
  script:
    - curl https://gest.unicaen.fr/packagist/update
    - 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)