liqinghua 1 rok temu
rodzic
commit
af6f9b78b7
2 zmienionych plików z 3 dodań i 3 usunięć
  1. 2
    2
      .drone.yml
  2. 1
    1
      Dockerfile

+ 2
- 2
.drone.yml Wyświetl plik

- 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 Wyświetl plik

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


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


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

Ładowanie…
Anuluj
Zapisz