This commit is contained in:
@@ -17,15 +17,6 @@ steps:
|
||||
- name: node_modules
|
||||
path: /app/node_modules
|
||||
|
||||
# 第二步:运行代码检查或测试(可选)
|
||||
- name: run-tests
|
||||
image: node:18-bullseye
|
||||
commands:
|
||||
- npm test # 如果有测试脚本
|
||||
volumes:
|
||||
- name: node_modules
|
||||
path: /app/node_modules
|
||||
|
||||
# 第三步:构建Docker镜像
|
||||
- name: build-image
|
||||
image: docker:20.10
|
||||
|
||||
Reference in New Issue
Block a user