Files
ttx-docker/.drone.yml
T
曾志威 f1ffdcddac
continuous-integration/drone Build is passing
init
2026-08-07 11:21:39 +08:00

38 lines
1.2 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
steps:
# 拉取 Shopee WES 项目
- name: clone-shopee-project
image: alpine/git:latest
commands:
- >
git clone
-b proj-shopee-test
--depth 1
https://zwzeng:glpat-nuzkafsdgYKM0KAgvpL4Bm86MQp1OnkH.01.0w0tr4xa1@git.ittx.com.cn/wms/wes-loghub.git
# docker 打包
- name: deploy
image: registry.cn-hangzhou.aliyuncs.com/loghub/wms-system-service:gradle9
commands:
- cd wes-loghub
- >
gradle jib -stacktrace
--info
--console=plain
--warning-mode=all
--build-cache
--configure-on-demand
--parallel
--max-workers=16
-x test
-PdockerBuild=true
-Dcybertrans.idp.enabled=false
-Djib.from.image=registry.cn-hangzhou.aliyuncs.com/ttx/amazoncorretto:25-alpine3.23-jdk
-Djib.to.image=registry.cn-hangzhou.aliyuncs.com/loghub/wes:shopee-wes-test-3
-Djib.container.entrypoint='INHERIT'
-Djib.container.args='java,-Dfile.encoding=utf-8,-Dspring.profiles.active=k8s,-Dserver.port=9210,-cp,/app/resources:/app/classes:/app/libs/*,com.ittx.Application'
- echo "===== 镜像签名(Digest ====="
- cat build/jib-image.digest