12 Commits
Author SHA1 Message Date
曾志威 c0d55c3b86 init 2026-02-25 17:51:37 +08:00
曾志威 2e591839f8 init
continuous-integration/drone Build is passing
2026-02-25 17:45:23 +08:00
曾志威 9c93ece4e9 init
continuous-integration/drone Build is passing
2026-02-25 17:17:11 +08:00
曾志威 bfc0a9e65e init
continuous-integration/drone Build is passing
2026-02-25 15:42:36 +08:00
曾志威 f3695b7f5f init
continuous-integration/drone Build is passing
2026-02-13 00:49:01 +08:00
曾志威 3afc29c6bc init
continuous-integration/drone Build is passing
2026-02-13 00:36:05 +08:00
曾志威 f79423ae3f init
continuous-integration/drone Build is passing
2026-02-13 00:27:48 +08:00
曾志威 f579e142b4 init
continuous-integration/drone Build is passing
2026-02-13 00:04:10 +08:00
曾志威 a163ca49e5 init
continuous-integration/drone Build is passing
2026-02-13 00:01:03 +08:00
曾志威 83cc136ea8 init
continuous-integration/drone Build is passing
2026-02-12 23:46:53 +08:00
曾志威 cc405b5985 init
continuous-integration/drone Build is failing
2026-02-12 23:44:43 +08:00
曾志威 367d513182 init
continuous-integration/drone Build is passing
2026-02-12 23:41:58 +08:00
6 changed files with 126 additions and 69 deletions
+9 -68
View File
@@ -1,77 +1,18 @@
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
# docker 打包
- name: docker
image: plugins/docker
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
context: ./
dockerfile: ./Dockerfile
username:
from_secret: docker_username
password:
from_secret: docker_password
purge: true
registry: https://registry.cn-hangzhou.aliyuncs.com
repo: registry.cn-hangzhou.aliyuncs.com/loghub/wms-system-service
tags:
- gradle8
-1
View File
@@ -1 +0,0 @@
.idea/
+11
View File
@@ -0,0 +1,11 @@
FROM gradle:8-alpine
RUN set -eux; \
apk add nodejs npm
RUN set -eux; \
npm install -g coffee-script stylus
ADD gradle.properties /root/.gradle/
ADD init.gradle /root/.gradle/
ADD config.json /root/.docker/
+31
View File
@@ -0,0 +1,31 @@
{
"auths": {
"qa-wms-acr-registry.cn-shanghai.cr.aliyuncs.com": {
"auth": "c2hhbnl1bi5ndUBTSElOVEFDQ1FBUzAxOnNmakxqemZmRThEMCNWZE4="
},
"registry-vpc.cn-hangzhou.aliyuncs.com": {
"auth": "c3d1QGl0dHguY29tLmNuOml0dHgyMDE4"
},
"registry.cn-hangzhou.aliyuncs.com": {
"auth": "c3d1QGl0dHguY29tLmNuOml0dHgyMDE4"
},
"registry.cn-shanghai.aliyuncs.com": {
"auth": "Zy5zaGFueXVuQGdtYWlsLmNvbTpBYTExMTIzNA=="
},
"sh2-cnepb-acr-pd-epp-registry.cn-shanghai.cr.aliyuncs.com": {
"auth": "U2h1aHVpLlBFTkctQURNQDEwNjU1NTY0ODc1NDYzNDI6eWRCQ2QyWVdxVWhUdExqMSUzb0RzRWxQQDJ3UmdI"
},
"ttx-registry-vpc.cn-hangzhou.cr.aliyuncs.com": {
"auth": "Y2J0X2plbmtpbnNfY3JAMTU0MzYwMDc2MDE3NjU0MDpzYmhXUXJWSFBWUU11SyEz"
},
"ttx-registry.cn-hangzhou.cr.aliyuncs.com": {
"auth": "c3lndUAxNTQzNjAwNzYwMTc2NTQwOlR0eEAyMDI1"
},
"wms-acr-registry.cn-shanghai.cr.aliyuncs.com": {
"auth": "c2hhbnl1bi5ndUBTSElOVEFDQ1BSRDAxOkFhMTIzNDU2"
}
},
"HttpHeaders": {
"User-Agent": "Docker-Client/19.03.1 (linux)"
}
}
+7
View File
@@ -0,0 +1,7 @@
org.gradle.daemon=fasle
org.gradle.configureondemand=false
org.gradle.parallel=true
org.gradle.vfs.watch=true
org.gradle.caching=true
systemProp.org.gradle.internal.http.maxConnections=8
+68
View File
@@ -0,0 +1,68 @@
buildscript {
repositories {
mavenLocal()
maven { url 'https://nexus.freeicu.top/repository/maven-public/' }
maven { url "https://repo.huaweicloud.com/repository/maven/huaweicloudsdk" }
maven { url "https://build.shibboleth.net/nexus/content/repositories/releases/" }
maven {
url 'https://nexus.loghub.com/repository/public/'
credentials {
username = "developer"
password = "95bb05e9-1540-4caa"
}
}
}
}
allprojects {
buildscript {
repositories {
mavenLocal()
maven { url 'https://nexus.freeicu.top/repository/maven-public/' }
maven { url "https://repo.huaweicloud.com/repository/maven/huaweicloudsdk" }
maven { url "https://build.shibboleth.net/nexus/content/repositories/releases/" }
maven {
url 'https://nexus.loghub.com/repository/public/'
credentials {
username = "developer"
password = "95bb05e9-1540-4caa"
}
}
}
}
repositories {
mavenLocal()
maven { url 'https://nexus.freeicu.top/repository/maven-public/' }
maven { url "https://repo.huaweicloud.com/repository/maven/huaweicloudsdk" }
maven { url "https://build.shibboleth.net/nexus/content/repositories/releases/" }
maven {
url 'https://nexus.loghub.com/repository/public/'
credentials {
username = "developer"
password = "95bb05e9-1540-4caa"
}
}
}
}
settingsEvaluated { settings ->
settings.pluginManagement {
repositories {
mavenLocal()
maven { url 'https://nexus.freeicu.top/repository/maven-public/' }
maven { url "https://repo.huaweicloud.com/repository/maven/huaweicloudsdk" }
maven { url "https://build.shibboleth.net/nexus/content/repositories/releases/" }
maven {
url 'https://nexus.loghub.com/repository/public/'
credentials {
username = "developer"
password = "95bb05e9-1540-4caa"
}
}
}
}
}