liqinghua 2 anni fa
parent
commit
af6f9b78b7
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 2
    2
      .drone.yml
  2. 1
    1
      Dockerfile

+ 2
- 2
.drone.yml Vedi File

- git reset --hard origin/test - git reset --hard origin/test
- docker-compose -f docker-compose-test.yml build - docker-compose -f docker-compose-test.yml build
# - docker-compose -f docker-compose-test.yml push # - docker-compose -f docker-compose-test.yml push
# - docker pull registry.cn-hangzhou.aliyuncs.com/anyu1/rcsc:rcsc_api_test_latest
# - docker pull registry.cn-hangzhou.aliyuncs.com/anyu1/rcsc:rcsc_web_test_latest
- sleep 1 - sleep 1
- docker-compose -f /home/lqh/apps-yml/dc-rcsc-web.yaml up -d --force-recreate - docker-compose -f /home/lqh/apps-yml/dc-rcsc-web.yaml up -d --force-recreate
- docker system prune -f --filter "label!=20"
- docker system prune -f --filter "label!=17"
when: when:
branch: branch:
- test - test

+ 1
- 1
Dockerfile Vedi File

COPY package*.json ./ COPY package*.json ./


# 安装依赖 # 安装依赖
RUN npm install
RUN npx vite build


# 将项目文件拷贝到工作目录 # 将项目文件拷贝到工作目录
COPY . . COPY . .

Loading…
Annulla
Salva