This commit is contained in:
@ -34,10 +34,17 @@ steps: # 定义管道的执行步骤
|
||||
tags:
|
||||
- latest
|
||||
|
||||
- name: install
|
||||
image: node:18
|
||||
pull: if-not-exists
|
||||
depends_on: [build-tags]
|
||||
commands:
|
||||
- npm install
|
||||
|
||||
- name: build-image
|
||||
image: plugins/docker
|
||||
pull: if-not-exists
|
||||
depends_on: [build-tags]
|
||||
depends_on: [install]
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
|
@ -5,8 +5,7 @@ WORKDIR /app
|
||||
# COPY package*.json ./
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm --registry https://registry.npm.taobao.org install
|
||||
# RUN npm --registry https://registry.npm.taobao.org install
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
|
Reference in New Issue
Block a user