Commit 0b1f52a2 authored by Anthony Gautreau's avatar Anthony Gautreau
Browse files

Trying to fix proxy

parent 2b9a7af9
Loading
Loading
Loading
Loading
Loading
+6 −5
Changes for .gitlab-ci.yml: 6 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -7,11 +7,6 @@ stages:
variables:
  PHP_DIR: api
  JS_DIR: frontend
  # Neutralise un éventuel proxy mal formé hérité des variables CI/CD du groupe/projet
  HTTP_PROXY: ""
  HTTPS_PROXY: ""
  http_proxy: ""
  https_proxy: ""

default:
  artifacts:
@@ -21,6 +16,9 @@ default:
build_js:
  stage: build
  script:
    - unset HTTP_PROXY HTTPS_PROXY http_proxy https_proxy npm_config_proxy npm_config_https_proxy
    - npm config delete proxy || true
    - npm config delete https-proxy || true
    - cd $JS_DIR
    - npm ci
    - npm run build
@@ -44,6 +42,9 @@ publish_js:
  rules:
    - if: '$CI_COMMIT_TAG'
  script:
    - unset HTTP_PROXY HTTPS_PROXY http_proxy https_proxy npm_config_proxy npm_config_https_proxy
    - npm config delete proxy || true
    - npm config delete https-proxy || true
    - cd $JS_DIR
    - npm ci
    - echo "@unicaen:registry=https://git.unicaen.fr/api/v4/projects/4318/packages/npm/" > .npmrc