搞一个 Drone YML

This commit is contained in:
2025-11-07 00:46:26 +08:00
parent 25374eee70
commit 8e11b934f5

48
.drone.yml Normal file
View File

@ -0,0 +1,48 @@
---
kind: pipeline
name: 构建 Docker 镜像
type: docker
trigger:
event:
- push
branch:
- master
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: 构建 Docker 镜像
image: plugins/docker:latest
privileged: true
settings:
username: kagami-ci
password:
from_secret: KAGAMI-CI-PASSWORD
repo: gitea.service.jazzwhom.top/mttu-developers/konabot-web
registry: gitea.service.jazzwhom.top
tags:
- latest
- commit-${DRONE_COMMIT_SHA}
dockerfile: Dockerfile
volumes:
- name: docker-socket
path: /var/run/docker.sock
- name: 发送构建结果到 ntfy
image: parrazam/drone-ntfy
when:
status: [success, failure]
settings:
url: https://ntfy.service.jazzwhom.top
topic: drone_ci
tags:
- drone-ci
token:
from_secret: NTFY_TOKEN
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock