24 lines
447 B
YAML
24 lines
447 B
YAML
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: default
|
||
|
|
||
|
steps:
|
||
|
- name: node-build
|
||
|
image: node:20.12
|
||
|
commands:
|
||
|
- npm install -g cnpm
|
||
|
- cnpm install
|
||
|
- cnpm install -g increase-memory-limit cross-env
|
||
|
- export NODE_OPTIONS=--max_old_space_size=4096
|
||
|
- cnpm run build:uat
|
||
|
- ls -l
|
||
|
|
||
|
- name: build-and-push
|
||
|
image: plugins/docker
|
||
|
registry: xx:io
|
||
|
dockerfile: Dockerfile-rc
|
||
|
tags: latest
|
||
|
# drone执行触发器1
|
||
|
trigger:
|
||
|
branch:
|
||
|
- main
|