express-template/.drone.yml

52 lines
810 B
YAML
Raw Normal View History

2021-06-28 05:52:36 +00:00
kind: pipeline
2021-08-16 15:47:37 +00:00
type: docker
name: release
2021-06-28 05:52:36 +00:00
node:
2021-08-16 15:47:37 +00:00
mode: dev
2021-06-28 05:52:36 +00:00
trigger:
2021-08-16 15:47:37 +00:00
event:
- tag
2021-06-28 05:52:36 +00:00
steps:
2021-08-16 15:47:37 +00:00
- 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
2021-06-28 05:52:36 +00:00
---
kind: pipeline
type: docker
2021-08-16 15:47:37 +00:00
name: dev
2021-06-28 05:52:36 +00:00
node:
mode: dev
trigger:
2021-08-16 15:47:37 +00:00
event:
- push
branch:
- ci
2021-06-28 05:52:36 +00:00
steps:
2021-08-16 15:47:37 +00:00
- name: build-image
2021-06-28 05:52:36 +00:00
image: plugins/docker
pull: if-not-exists
settings:
username:
2021-08-16 15:47:37 +00:00
from_secret: repo_username
2021-06-28 05:52:36 +00:00
password:
2021-08-16 15:47:37 +00:00
from_secret: repo_password
repo: docker.zcj.plus/zhouchijian/demo/express-template
2021-06-28 05:52:36 +00:00
registry: https://docker.zcj.plus