All checks were successful
continuous-integration/drone/push Build is passing
修复 notification 内容处理错误 Signed-off-by: Ching <loooching@gmail.com>
35 lines
921 B
YAML
35 lines
921 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: build-and-push
|
|
image: plugins/docker
|
|
settings:
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
repo: git.tunpok.com/ching/python-env
|
|
registry: git.tunpok.com
|
|
tags: latest
|
|
|
|
- name: nofity
|
|
image: plugins/webhook
|
|
settings:
|
|
urls: http://bark.tunpok.com/UZ6zC82bKRjQaXiVkosVWh/
|
|
content_type: application/json
|
|
template: |
|
|
{
|
|
"title": "Drone Build #{{ build.number }} {{ build.status }}",
|
|
"body": "Project: {{ repo.name }}\nBranch: {{ build.branch }}\nCommit: {{ build.commit:0:8 }}",
|
|
"group": "drone",
|
|
"url": "{{ build.link }}",
|
|
"icon": "https://static-00.iconduck.com/assets.00/drone-icon-2048x2048-6zua2vkz.png"
|
|
}
|
|
|
|
volumes:
|
|
- name: dockersock
|
|
host:
|
|
path: /var/run/docker.sock
|