issue # gitlab-ci 테스트
This commit is contained in:
@@ -19,25 +19,24 @@
|
||||
# stages: # List of stages for jobs, and their order of execution
|
||||
# - build
|
||||
|
||||
# cache:
|
||||
# key:
|
||||
# files:
|
||||
# - package-lock.json
|
||||
# paths:
|
||||
# - node_modules/
|
||||
cache:
|
||||
key: "${CI_COMMIT_REF_SLUG}"
|
||||
paths:
|
||||
- node_modules/
|
||||
- .yarn/cache/
|
||||
|
||||
# build: # This job runs in the build stage, which runs first.
|
||||
# stage: build
|
||||
# tags:
|
||||
# - local-runner
|
||||
# before_script:
|
||||
# script:
|
||||
# - echo "Compiling the code..."
|
||||
# - echo $DOCKER_VOLUME
|
||||
# - echo $DOCKER_COMPOSE_VOLUME
|
||||
# - 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 -f $DOCKER_COMPOSE_VOLUME/scheduler/docker-compose.yaml up -d back
|
||||
# - echo "Compile complete."
|
||||
build: # This job runs in the build stage, which runs first.
|
||||
stage: build
|
||||
tags:
|
||||
- local-runner
|
||||
before_script:
|
||||
script:
|
||||
- echo "Compiling the code..."
|
||||
- echo $DOCKER_VOLUME
|
||||
- echo $DOCKER_COMPOSE_VOLUME
|
||||
- yarn install --immutable
|
||||
- yarn build
|
||||
- sudo cp -r $PWD/dist/. $DOCKER_VOLUME/scheduler/back/dist
|
||||
- sudo cp $PWD/package.json $DOCKER_VOLUME/scheduler/back/dist
|
||||
- docker compose -f $DOCKER_COMPOSE_VOLUME/scheduler/docker-compose.yaml up -d back
|
||||
- echo "Compile complete."
|
||||
Reference in New Issue
Block a user