Files
konabot/.drone.yml
2025-09-28 01:27:37 +08:00

83 lines
1.9 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
kind: pipeline
name: 构建 Docker Nightly 镜像
type: docker
trigger:
event:
- push
branch:
- master
steps:
- name: 构建 Docker 镜像
image: plugins/docker:latest
privileged: true
settings:
username: kagami-ci
password:
from_secret: KAGAMI-CI-PASSWORD
repo: gitea.service.jazzwhom.top/Passthem/konabot
registry: gitea.service.jazzwhom.top
tags:
- nightly
- nightly-${DRONE_DATE_TIME}
dockerfile: Dockerfile
volumes:
- name: docker-socket
path: /var/run/docker.sock
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock
---
kind: pipeline
name: 构建 Docker Release 镜像
type: docker
trigger:
event:
- tag
branch:
- master
steps:
- name: 构建并推送 Release Docker 镜像
image: plugins/docker:latest
privileged: true
settings:
username: kagami-ci
password:
from_secret: KAGAMI-CI-PASSWORD
repo: gitea.service.jazzwhom.top/Passthem/konabot
registry: gitea.service.jazzwhom.top
tags:
- ${DRONE_TAG}
- latest
dockerfile: Dockerfile
volumes:
- name: docker-socket
path: /var/run/docker.sock
- name: Discord Release 告知
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: DISCORD-WEBHOOK-ID
webhook_token:
from_secret: DISCORD-WEBHOOK-TOKEN
username: DroneCI Release 告知
message: 构建成功!已经上传了 Docker 包gitea.service.jazzwhom.top/Passthem/konabot:${DRONE_TAG}
- name: Discord Release 构建失败告知
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: DISCORD-WEBHOOK-ID
webhook_token:
from_secret: DISCORD-WEBHOOK-TOKEN
username: DroneCI Release 构建失败告知
message: 构建失败了orz
when:
status:
- failure