Commit 7e815c8d authored by François Agneray's avatar François Agneray
Browse files

Fixed bug gitlab-ci build-coverage

parent c864c773
Pipeline #1605 failed with stages
in 16 minutes and 24 seconds
...@@ -60,6 +60,7 @@ sonar_scanner: ...@@ -60,6 +60,7 @@ sonar_scanner:
cache: cache:
paths: paths:
- node_modules - node_modules
- coverage
policy: pull policy: pull
only: only:
refs: refs:
...@@ -71,7 +72,7 @@ build-coverage: ...@@ -71,7 +72,7 @@ build-coverage:
script: script:
- mkdir build-coverage - mkdir build-coverage
- echo "FROM nginx" > build-coverage/Dockerfile - echo "FROM nginx" > build-coverage/Dockerfile
- echo "COPY coverage /usr/share/nginx/html" >> build-coverage/Dockerfile - echo "COPY ../coverage /usr/share/nginx/html" >> build-coverage/Dockerfile
- docker login -u fagneray -p $PORTUS_TOKEN portus.lam.fr - docker login -u fagneray -p $PORTUS_TOKEN portus.lam.fr
- docker pull $COVERAGE_IMAGE:latest || true - docker pull $COVERAGE_IMAGE:latest || true
- docker build --cache-from $COVERAGE_IMAGE:latest -t $COVERAGE_IMAGE:latest build-coverage - docker build --cache-from $COVERAGE_IMAGE:latest -t $COVERAGE_IMAGE:latest build-coverage
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment