Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d12c1db403 | ||
|
|
10e0b6ac96 | ||
|
|
859dacf0bc | ||
|
|
aaed0150f0 | ||
|
|
8fcde0acba | ||
|
|
97d1da2f92 | ||
|
|
1a5cf1a3b0 | ||
|
|
c593a6c854 | ||
|
|
97b8145750 | ||
|
|
c4f62b4fdf | ||
|
|
c293dc13db | ||
|
|
50f2266172 | ||
|
|
619a5c7c5e | ||
|
|
b0bcf7d43a | ||
|
|
a07413d8b6 | ||
|
|
a5a8498839 | ||
|
|
4f395c9997 | ||
|
|
f1ffdcddac | ||
|
|
331f7f03bb | ||
|
|
d279c78d6c | ||
|
|
10365464fa | ||
|
|
2fe6f40fd9 | ||
|
|
f9178f1dac | ||
|
|
aa6d790dbb | ||
|
|
06dbdbed7e | ||
|
|
686391a403 | ||
|
|
39d4bfa730 | ||
|
|
1114f2561c | ||
|
|
929bcfdf2e | ||
|
|
d624523547 | ||
|
|
e7829cd990 | ||
|
|
03e97547da | ||
|
|
0e4d45628a | ||
|
|
573b28a1b8 | ||
|
|
95c79c6dd0 | ||
|
|
cd130436dc | ||
|
|
9c4ef2b99a | ||
|
|
875c603c82 | ||
|
|
7b12f0c4a9 | ||
|
|
2198445019 | ||
|
|
54c3efc5f9 | ||
|
|
0046b5d47c | ||
|
|
d1a025c816 | ||
|
|
d96416118e | ||
|
|
2d71c6eede | ||
|
|
d3741fbd21 | ||
|
|
3df2760efc |
+77
@@ -0,0 +1,77 @@
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
steps:
|
||||
- name: clone-cbt-ui
|
||||
image: docker.freeicu.top/alpine/git:latest
|
||||
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
|
||||
|
||||
- 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
|
||||
commands:
|
||||
- >
|
||||
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
|
||||
@@ -0,0 +1 @@
|
||||
.idea/
|
||||
Reference in New Issue
Block a user