migrate ci to woodpecker

This commit is contained in:
jianxin committed 2026-06-01 17:10:09 +08:00
1 parent a6bb166a28
commit 199ca44971
1 file changed
+12 -35
+12 -35
View File
@@ -1,32 +1,29 @@
---
kind: pipeline
type: docker
name: default
when:
- event: push
branch:
include:
- main
- feature/*
steps:
- name: build
image: plugins/docker:latest
volumes:
- name: dockersock
path: /var/run/docker.sock
pull: never
privileged: true
image: woodpeckerci/plugin-kaniko
settings:
pull_image: false
username:
from_secret: registry_username
password:
from_secret: registry_password
tags: latest
insecure: true
insecure-registry: registry.woni.io
repo: registry.woni.io/woni/office-xbot-feishu
registry: registry.woni.io
mirror: https://5c492fmo.mirror.aliyuncs.com
mirrors:
- https://5c492fmo.mirror.aliyuncs.com
dockerfile: ./Dockerfile
- name: scp
image: appleboy/drone-scp
pull: never
settings:
host:
from_secret: ssh_host
@@ -41,7 +38,6 @@ steps:
- name: deploy
image: appleboy/drone-ssh
pull: never
settings:
host:
from_secret: ssh_host
@@ -57,12 +53,11 @@ steps:
# - sudo sed -i "s#development#production#g" .flaskenv
- docker compose down
- docker compose rm
- docker compose pull office-xbot-feishu
- docker compose pull
- docker compose --env-file .env up -d
- name: feishu
image: keepchen/drone-feishu
pull: never
settings:
token:
from_secret: feishu_token
@@ -73,23 +68,5 @@ steps:
failure_img_key: ""
powered_by_img_key: ""
powered_by_img_alt: ""
commands:
- env
when:
status: [failure, success]
trigger:
branch:
include:
- main
- feature/*
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
- name: cache
host:
path: /tmp/cache
- status: [failure, success]