Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2faf8cf5b9 | ||
|
|
33d75a0436 | ||
|
|
bc089ebbda | ||
|
|
5464d6146a | ||
|
|
e51df832d5 | ||
|
|
9d6c6b1f37 | ||
|
|
7d5590d356 | ||
|
|
cf2c3f8593 | ||
|
|
d0a1adf19a | ||
|
|
9c37357825 | ||
|
|
a83dda5256 | ||
|
|
8262d3bbe1 | ||
|
|
7099acd59b | ||
|
|
c780ba3eed | ||
|
|
5bb3854d35 | ||
|
|
e2b3e2d6f9 | ||
|
|
8f79a967be | ||
|
|
96b169e64f | ||
|
|
11647bd235 | ||
|
|
739ef1e26f | ||
|
|
1fba25d8fc | ||
|
|
08d1cccba4 | ||
|
|
cc3034ecf9 | ||
|
|
72d745f473 | ||
|
|
88fd177a44 | ||
|
|
92809548b1 | ||
|
|
57273af77b | ||
|
|
f06f040202 | ||
|
|
4d54f2b492 | ||
|
|
de383696dc | ||
|
|
c327a175d3 |
+21
-69
@@ -1,77 +1,29 @@
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
steps:
|
||||
- name: clone-cbt-ui
|
||||
image: docker.freeicu.top/alpine/git:latest
|
||||
|
||||
# 步骤2:拉取其他 Git 项目(common-utils)
|
||||
- name: clone-other-project
|
||||
image: alpine/git:latest # 轻量 Git 镜像
|
||||
commands:
|
||||
- >
|
||||
git clone
|
||||
-b proj-shopee-test
|
||||
--depth 1
|
||||
--no-tags
|
||||
https://zwzeng:glpat-nuzkafsdgYKM0KAgvpL4Bm86MQp1OnkH.01.0w0tr4xa1@git.ittx.com.cn/cybertrans/frontend/cbt-ui.git
|
||||
# 拉取其他项目到指定目录
|
||||
- >
|
||||
git clone
|
||||
-b v3.3-walle-v1.3
|
||||
--depth 1
|
||||
https://zwzeng:glpat-Ht2452yuDgM84iNzu32b@git.ittx.com.cn/wms/wms-loghub-3-x.git
|
||||
|
||||
- name: build-cbt-ui
|
||||
image: docker.freeicu.top/library/node:22-alpine
|
||||
pull: if-not-exists
|
||||
environment:
|
||||
NPM_USERNAME:
|
||||
from_secret: nexus_username
|
||||
NPM_PASSWORD:
|
||||
from_secret: nexus_password
|
||||
CBT_BUILD_OUTPUT_DIR: dist/release
|
||||
# docker 打包
|
||||
- name: deploy
|
||||
image: registry.cn-hangzhou.aliyuncs.com/loghub/wms-system-service:gradle8
|
||||
commands:
|
||||
- cd wms-loghub-3-x
|
||||
- >
|
||||
test -w /cache ||
|
||||
(echo "Cache directory /cache is not mounted or writable" && exit 1)
|
||||
- cd cbt-ui
|
||||
- >
|
||||
sed -i
|
||||
's#https://dl-cdn.alpinelinux.org/alpine#https://mirrors.aliyun.com/alpine#'
|
||||
/etc/apk/repositories
|
||||
- apk add --no-cache expect
|
||||
- corepack enable
|
||||
- |
|
||||
node <<'NODE'
|
||||
const fs = require('fs')
|
||||
const workspacePath = 'pnpm-workspace.yaml'
|
||||
const workspace = fs.readFileSync(workspacePath, 'utf8')
|
||||
const updated = workspace.replace(
|
||||
/: set this to true or false$/gm,
|
||||
': true',
|
||||
)
|
||||
|
||||
if (updated === workspace) {
|
||||
throw new Error('pnpm-workspace.yaml has no allowBuilds placeholders')
|
||||
}
|
||||
fs.writeFileSync(workspacePath, updated)
|
||||
NODE
|
||||
- pnpm config set store-dir /cache/cbt-ui/pnpm-store
|
||||
- sh install.sh
|
||||
- pnpm build:wes
|
||||
- test -f dist/release/index.html
|
||||
- >
|
||||
sed -i
|
||||
's#registry-vpc.cn-hangzhou.aliyuncs.com#registry.cn-hangzhou.aliyuncs.com#'
|
||||
Dockerfile
|
||||
|
||||
- name: package-cbt-ui
|
||||
image: docker.freeicu.top/plugins/docker:latest
|
||||
settings:
|
||||
context: ./cbt-ui
|
||||
dockerfile: ./cbt-ui/Dockerfile
|
||||
registry: registry.cn-hangzhou.aliyuncs.com
|
||||
repo: registry.cn-hangzhou.aliyuncs.com/loghub/wes
|
||||
tags:
|
||||
- shopee-ui-test-1
|
||||
cache_from:
|
||||
- registry.cn-hangzhou.aliyuncs.com/loghub/wes:shopee-ui-test-1
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
purge: true
|
||||
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
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
.idea/
|
||||
@@ -0,0 +1,5 @@
|
||||
FROM rabbitmq:4.2-management-alpine
|
||||
|
||||
RUN set -eux; \
|
||||
apk update; \
|
||||
apk upgrade ;
|
||||
Reference in New Issue
Block a user