Files
ttx-docker/.drone.yml
T
2026-02-25 18:24:23 +08:00

62 lines
1.7 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: default
# 定义工作空间(可选,统一构建目录)
workspace:
path: /root/drone/src
steps:
# 恢复 Gradle 缓存(无需挂载主机卷)
- name: restore-gradle-cache
image: plugins/cache:latest
settings:
mount:
- /root/.gradle/caches
- /root/.gradle/wrapper
key: gradle-{{ checksum "build.gradle" }}
fallback_key: gradle-
backend: filesystem
path: /root/drone/cache
failure: ignore
# 步骤2:拉取其他 Git 项目(common-utils
- name: clone-other-project
image: alpine/git:latest # 轻量 Git 镜像
commands:
# 拉取其他项目到指定目录
- >
git clone
-b v3.3-walle-v1.3
--depth 1
https://zwzeng:glpat-Ht2452yuDgM84iNzu32b@git.ittx.com.cn/wms/wms-loghub-3-x.git
# docker 打包
- name: deploy
image: registry.cn-hangzhou.aliyuncs.com/loghub/wms-system-service:gradle8
commands:
- cd wms-loghub-3-x
- >
gradle jib --info
-x test
-PdockerBuild=true
-Dcybertrans.idp.enabled=false
-Djib.from.image=registry.cn-hangzhou.aliyuncs.com/loghub/wms-system-service:snde-jdk
-Djib.to.image=registry.cn-hangzhou.aliyuncs.com/loghub/wms-system-service
-Djib.to.tags=walle-wms
# 保存缓存
- name: save-gradle-cache
image: plugins/cache:latest
settings:
mount:
- /root/.gradle/caches
- /root/.gradle/wrapper
key: gradle-{{ checksum "build.gradle" }}
fallback_key: gradle-
backend: filesystem
path: /root/drone/cache
when:
status: [success]
failure: ignore