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