38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
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
|