You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.1 KiB

6 months ago
workspace:
base: /project
path: src/demo
branches: [ master,develop,uat ]
pipeline:
6 months ago
install:
image: node:16-alpine
commands:
- yarn install # 也可以使用 npm install
6 months ago
6 months ago
build:
image: node:16-alpine
commands:
- yarn run build:test
6 months ago
when:
6 months ago
event: push
branch: develop
6 months ago
6 months ago
docker-dev:
6 months ago
image: plugins/docker
6 months ago
repo: registry.cn-shenzhen.aliyuncs.com/ax-stor/ax-bkb-seller
6 months ago
registry: registry.cn-shenzhen.aliyuncs.com
use_cache: true
6 months ago
dockerfile: DockerfileDev
6 months ago
secrets: [ docker_username, docker_password ]
6 months ago
tags: bseller-web
6 months ago
when:
branch: develop
6 months ago
6 months ago
deploy-dev:
6 months ago
image: appleboy/drone-ssh
host: 1.92.109.79
username: root
password:
from_secret: ssh_password
port: 22 # 可选,指定 SSH 端口,默认为 22
script:
- docker rm -f bseller-web
- docker pull registry.cn-shenzhen.aliyuncs.com/ax-stor/ax-bkb-seller:bseller-web
- docker run --name=bseller-web -p 30102:83 -d registry.cn-shenzhen.aliyuncs.com/ax-stor/ax-bkb-seller:bseller-web
when:
branch: develop