issue # gitlab-ci 테스트

This commit is contained in:
geonhee-min
2025-11-24 10:27:42 +09:00
parent fb544e9e3a
commit dbf96453b5
11 changed files with 130 additions and 74 deletions

View File

@@ -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."