issue # gitlab ci test
This commit is contained in:
@@ -19,6 +19,13 @@
|
||||
stages: # List of stages for jobs, and their order of execution
|
||||
- build
|
||||
|
||||
cache:
|
||||
key:
|
||||
files:
|
||||
- package-lock.json
|
||||
paths:
|
||||
- node_modules/
|
||||
|
||||
build: # This job runs in the build stage, which runs first.
|
||||
stage: build
|
||||
tags:
|
||||
@@ -28,4 +35,7 @@ build: # This job runs in the build stage, which runs first.
|
||||
- echo "Compiling the code..."
|
||||
- npm install
|
||||
- npm run build
|
||||
- sudo cp -r $PWD/dist/. $DOCKER_VOLUME/scheduler/back/dist
|
||||
- sudo cp $PWD/package.json $DOCKER_VOLUME/scheduler/back/dist
|
||||
- docker compose up -d back
|
||||
- echo "Compile complete."
|
||||
Reference in New Issue
Block a user