1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

use artifacts instead of cache

This commit is contained in:
Ricardo Hernandez-Montoya 2017-06-01 11:21:03 +02:00
parent c75ac09aa9
commit bcd3f32003

View file

@ -10,10 +10,6 @@ services:
before_script:
- mkdir -p build
cache:
paths:
- build
stages:
- build
- test
@ -23,6 +19,10 @@ build_job:
stage: build
script:
- docker run --rm -v $(pwd)/package.json:/usr/src/app/package.json -v $(pwd)/build:/usr/src/app/build -v $(pwd)/public:/usr/src/app/public -v $(pwd)/src:/usr/src/app/src -w /usr/src/app node:7.9.0-slim bash -c 'npm install; npm run build'
artifacts:
paths:
- build/
expire_in: 1 week
tags:
- docker