- 修改
This commit is contained in:
parent
119a9ff88c
commit
149e5df1b3
52
.drone.yml
52
.drone.yml
@ -1,27 +1,41 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: deploy
|
||||||
|
#
|
||||||
|
volumes:
|
||||||
|
- name: node_modules
|
||||||
|
host:
|
||||||
|
path: /usr/local/blackend/node_modules
|
||||||
|
- name: web_build_dir
|
||||||
|
host:
|
||||||
|
path: /opt/1panel/apps/openresty/openresty/www/sites/120.48.5.80/index
|
||||||
|
- name: yarn_cache
|
||||||
|
host:
|
||||||
|
path: /usr/local/blackend/yarn_cache
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build-project
|
||||||
image: plugins/docker
|
image: node:22-alpine
|
||||||
settings:
|
depends_on: [clone]
|
||||||
dockerfile: Dockerfile
|
mirror: https://docker.1panelproxy.com
|
||||||
dry_run: true
|
volumes:
|
||||||
repo: automated-api
|
- name: node_modules
|
||||||
tags:
|
path: /drone/src/node_modules
|
||||||
- latest
|
- name: web_build_dir
|
||||||
mirror: https://docker.1panelproxy.com
|
path: /drone/src/dist
|
||||||
|
- name: yarn_cache
|
||||||
|
path: /usr/local/share/.cache/yarn/v6
|
||||||
commands:
|
commands:
|
||||||
- docker run -d -p 8001:8001 --network tycm-server_test-network --name automated-api --restart unless-stopped automated-api:latest
|
# - npm config set registry https://registry.npm.taobao.org
|
||||||
|
- pnpm config set registry https://registry.npmmirror.com
|
||||||
|
- pnpm install
|
||||||
|
- pnpm build
|
||||||
|
#- npm cache clean --force
|
||||||
|
# - npm install
|
||||||
|
# - npm run build:prod
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
- master
|
event:
|
||||||
|
- push
|
||||||
volumes:
|
|
||||||
- name: docker
|
|
||||||
host:
|
|
||||||
path: /var/run/docker.sock
|
|
Loading…
Reference in New Issue
Block a user