52 lines
810 B
YAML
52 lines
810 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: release
|
|
|
|
node:
|
|
mode: dev
|
|
|
|
trigger:
|
|
event:
|
|
- tag
|
|
|
|
|
|
steps:
|
|
|
|
- name: build-image
|
|
image: plugins/docker
|
|
pull: if-not-exists
|
|
settings:
|
|
username:
|
|
from_secret: repo_username
|
|
password:
|
|
from_secret: repo_password
|
|
repo: docker.zcj.plus/zhouchijian/demo/express-template
|
|
registry: https://docker.zcj.plus
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: dev
|
|
|
|
node:
|
|
mode: dev
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
branch:
|
|
- ci
|
|
|
|
steps:
|
|
|
|
- name: build-image
|
|
image: plugins/docker
|
|
pull: if-not-exists
|
|
settings:
|
|
username:
|
|
from_secret: repo_username
|
|
password:
|
|
from_secret: repo_password
|
|
repo: docker.zcj.plus/zhouchijian/demo/express-template
|
|
registry: https://docker.zcj.plus
|