瀏覽代碼

test

test
liqinghua 1 年之前
父節點
當前提交
af6f9b78b7
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2
    2
      .drone.yml
  2. 1
    1
      Dockerfile

+ 2
- 2
.drone.yml 查看文件

- 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 查看文件

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


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


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

Loading…
取消
儲存