ci: 更新 Docker 镜像源并调整分支触发条件
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
- 将 Dockerfile 和 .drone.yml 中的 Docker 镜像源从官方更改为阿里云国内代理 - 修改 .drone.yml 中的触发分支,从 dev-2.0.0 改为 main 和 master - 移除了 .drone.yml 中的事件触发条件配置
This commit is contained in:
parent
29da78dcca
commit
3b0f39e2ba
@ -4,7 +4,7 @@ name: default
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: registry.cn-hangzhou.aliyuncs.com/library/docker:latest
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
dry_run: true
|
dry_run: true
|
||||||
@ -14,9 +14,8 @@ steps:
|
|||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- dev-2.0.0
|
- main
|
||||||
event:
|
- master
|
||||||
- push
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker
|
- name: docker
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# 构建阶段
|
# 构建阶段
|
||||||
FROM node:18-alpine AS builder
|
FROM registry.cn-hangzhou.aliyuncs.com/library/node:18-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ COPY . .
|
|||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# 运行阶段
|
# 运行阶段
|
||||||
FROM node:18-alpine
|
FROM registry.cn-hangzhou.aliyuncs.com/library/node:18-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user