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.
|
|
|
kind: pipeline
|
|
|
|
name: h5admin
|
|
|
|
branches: develop
|
|
|
|
steps:
|
|
|
|
- name: install
|
|
|
|
image: node:16-alpine
|
|
|
|
commands:
|
|
|
|
- yarn install # 也可以使用 npm install
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: node:16-alpine
|
|
|
|
commands:
|
|
|
|
- yarn run build:test
|
|
|
|
when:
|
|
|
|
event: push
|
|
|
|
branch: develop
|
|
|
|
|
|
|
|
- name: docker-dev
|
|
|
|
image: plugins/docker
|
|
|
|
repo: registry.cn-shenzhen.aliyuncs.com/ax-stor/ax-bkb-seller-web
|
|
|
|
registry: registry.cn-shenzhen.aliyuncs.com
|
|
|
|
use_cache: true
|
|
|
|
dockerfile: DockerfileDev
|
|
|
|
secrets: [ docker_username, docker_password ]
|
|
|
|
tags: bkb-admin-web
|
|
|
|
when:
|
|
|
|
branch: develop
|
|
|
|
|
|
|
|
- name: deploy-dev
|
|
|
|
image: appleboy/drone-ssh
|
|
|
|
host: 1.92.109.79
|
|
|
|
username: root
|
|
|
|
password:
|
|
|
|
from_secret: ssh_password
|
|
|
|
port: 22 # 可选,指定 SSH 端口,默认为 22
|
|
|
|
script:
|
|
|
|
- docker rm -f bkb-admin-web
|
|
|
|
- docker pull registry.cn-shenzhen.aliyuncs.com/ax-stor/ax-bkb-seller-web:bkb-admin-web
|
|
|
|
- docker run --name=bkb-admin-web -p 30101:83 -d registry.cn-shenzhen.aliyuncs.com/ax-stor/ax-bkb-seller-web:bkb-admin-web
|
|
|
|
when:
|
|
|
|
branch: develop
|