diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a0d741c..b37cf5f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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." \ No newline at end of file