python-env-docker/.drone.yml
Ching fc8284da65
All checks were successful
continuous-integration/drone/push Build is passing
fix(drone.yml): 修复 notification 内容处理错误
修复 notification 内容处理错误

Signed-off-by: Ching <loooching@gmail.com>
2024-02-08 00:17:12 +08:00

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