更新 .drone.yml
Some checks reported errors
continuous-integration/drone Build encountered an error

This commit is contained in:
2026-01-13 11:46:29 +08:00
parent 94438d1271
commit 705cfdaa5c

View File

@@ -1,9 +1,7 @@
kind: pipeline
type: docker
name: fateverse
platform:
os: linux
arch: arm64
steps:
@@ -21,7 +19,7 @@ steps:
- bash maven.sh
- name: build-docker # 制作docker镜像
image: 10.7.127.190:38080/docker/docker # 使用官方docker镜像
image: registry.cn-chengdu.aliyuncs.com/claywang/docker:20.10.1 # 使用官方docker镜像
volumes: # 将容器内目录挂载到宿主机
- name: maven-build
path: /app/build # 将应用打包好的Jar和执行脚本挂载出来
@@ -55,7 +53,7 @@ steps:
- name: deploy # rancher运行
image: bitnami/kubectl:1.26.13-debian-11-r1 #阿里云的kubectl镜像,里面包含kubectl命令行工具
image: registry.cn-chengdu.aliyuncs.com/claywang/kubectl #阿里云的kubectl镜像,里面包含kubectl命令行工具
volumes: # 将容器内目录挂载到宿主机
- name: maven-build
path: /app/build # 将应用打包好的Jar和执行脚本挂载出来
@@ -64,18 +62,15 @@ steps:
commands: # 定义在Docker容器中执行的shell命令
- cd /app/build/$DRONE_COMMIT_BRANCH
# 通过kubectl指令运行deployment.yml,并指定授权文件kubectl_conf.yml
- kubectl apply -f deployment.yml -n fateverse --kubeconfig=/app/config/base-taishan-kubectl.yml
- kubectl apply -f deployment.yml -n master --kubeconfig=/app/config/kubectl.yml
volumes:
- name: maven-build
- name: settings
host:
path: /home/build/fateverse
- name: skywalking-agent
host:
path: /home/build/skywalking-agent
- name: config # k8s对接的配置文件
path: /home/kubect/settings.xml
- name: config
host:
path: /home/kubect
- name: maven-cache
@@ -84,6 +79,8 @@ volumes:
- name: docker
host:
path: /var/run/docker.sock
# 定义触发条件
trigger:
branch: