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 |
+68
-9
@@ -1,18 +1,77 @@
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
steps:
|
||||
# docker 打包
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
- 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: ./
|
||||
dockerfile: ./Dockerfile
|
||||
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
|
||||
registry: https://registry.cn-hangzhou.aliyuncs.com
|
||||
repo: registry.cn-hangzhou.aliyuncs.com/loghub/wms-system-service
|
||||
tags:
|
||||
- gradle6
|
||||
purge: true
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
.idea/
|
||||
@@ -1,6 +0,0 @@
|
||||
[Credentials]
|
||||
language=EN
|
||||
endpoint=oss-cn-hangzhou.aliyuncs.com
|
||||
AccessKeyID=LTAIiOKICUiT4Mxf
|
||||
AccessKeySecret=Y2srJsSPJiRNx41fomps0zmWHvCges
|
||||
region = cn-hangzhou # 增加此行,配置Region
|
||||
-23
@@ -1,23 +0,0 @@
|
||||
FROM gradle:6.9-jdk8
|
||||
|
||||
RUN set -eux; \
|
||||
sed -i 's|http://archive.ubuntu.com/ubuntu|https://mirrors.aliyun.com/ubuntu|g' /etc/apt/sources.list; \
|
||||
sed -i 's|http://security.ubuntu.com/ubuntu|https://mirrors.aliyun.com/ubuntu|g' /etc/apt/sources.list; \
|
||||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends \
|
||||
nodejs \
|
||||
npm; \
|
||||
command -v node; \
|
||||
command -v npm; \
|
||||
npm config set registry https://registry.npmmirror.com; \
|
||||
npm install -g coffeescript@2.7.0 stylus@0.54.8; \
|
||||
stylus --version; \
|
||||
coffee --version; \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ADD ossutil /usr/local/bin/ossutil
|
||||
RUN chmod +x /usr/local/bin/ossutil
|
||||
ADD .ossutilconfig /root/.ossutilconfig
|
||||
|
||||
ADD init.gradle /root/.gradle/
|
||||
ADD config.json /root/.docker/
|
||||
@@ -1,90 +0,0 @@
|
||||
FROM eclipse-temurin:8-jdk-alpine
|
||||
|
||||
CMD ["gradle"]
|
||||
|
||||
ENV GRADLE_HOME=/opt/gradle
|
||||
|
||||
RUN set -o errexit -o nounset \
|
||||
&& echo "Adding gradle user and group" \
|
||||
&& addgroup --system --gid 1000 gradle \
|
||||
&& adduser --system --ingroup gradle --uid 1000 --shell /bin/ash gradle \
|
||||
&& mkdir /home/gradle/.gradle \
|
||||
&& chown -R gradle:gradle /home/gradle \
|
||||
&& chmod -R o+rwx /home/gradle \
|
||||
\
|
||||
&& echo "Symlinking root Gradle cache to gradle Gradle cache" \
|
||||
&& ln -s /home/gradle/.gradle /root/.gradle
|
||||
|
||||
VOLUME /home/gradle/.gradle
|
||||
|
||||
WORKDIR /home/gradle
|
||||
|
||||
RUN set -o errexit -o nounset \
|
||||
&& echo "Switching apk mirror to aliyun" \
|
||||
&& sed -i 's|https\?://dl-cdn.alpinelinux.org/alpine|https://mirrors.aliyun.com/alpine|g' /etc/apk/repositories \
|
||||
&& apk update \
|
||||
\
|
||||
&& apk add --no-cache \
|
||||
curl \
|
||||
make \
|
||||
breezy \
|
||||
py3-tzlocal \
|
||||
git \
|
||||
git-lfs \
|
||||
mercurial \
|
||||
subversion \
|
||||
\
|
||||
&& echo "Testing common utilities" \
|
||||
&& which awk \
|
||||
&& which curl \
|
||||
&& which cut \
|
||||
&& which grep \
|
||||
&& which gunzip \
|
||||
&& which sha256sum \
|
||||
&& which sed \
|
||||
&& which tar \
|
||||
&& which tr \
|
||||
&& which unzip \
|
||||
&& which wget \
|
||||
\
|
||||
&& echo "Testing VCSes" \
|
||||
&& which git \
|
||||
&& which git-lfs \
|
||||
&& which hg \
|
||||
&& which svn
|
||||
|
||||
ENV GRADLE_VERSION=6.9.4
|
||||
ARG GRADLE_DOWNLOAD_SHA256=3e240228538de9f18772a574e99a0ba959e83d6ef351014381acd9631781389a
|
||||
RUN set -o errexit -o nounset \
|
||||
&& echo "Downloading Gradle" \
|
||||
&& wget --no-verbose --output-document=gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" \
|
||||
\
|
||||
&& echo "Checking Gradle download hash" \
|
||||
&& echo "${GRADLE_DOWNLOAD_SHA256} *gradle.zip" | sha256sum -c - \
|
||||
\
|
||||
&& echo "Installing Gradle" \
|
||||
&& unzip gradle.zip \
|
||||
&& rm gradle.zip \
|
||||
&& mv "gradle-${GRADLE_VERSION}" "${GRADLE_HOME}/" \
|
||||
&& ln -s "${GRADLE_HOME}/bin/gradle" /usr/bin/gradle
|
||||
|
||||
USER gradle
|
||||
|
||||
RUN set -o errexit -o nounset \
|
||||
&& echo "Testing Gradle installation" \
|
||||
&& gradle --version
|
||||
|
||||
USER root
|
||||
|
||||
RUN set -eux; \
|
||||
apk add nodejs npm
|
||||
|
||||
RUN set -eux; \
|
||||
npm install -g coffee-script stylus
|
||||
|
||||
ADD ossutil /usr/local/bin/ossutil
|
||||
RUN chmod +x /usr/local/bin/ossutil
|
||||
ADD .ossutilconfig /root/.ossutilconfig
|
||||
|
||||
ADD init.gradle /root/.gradle/
|
||||
ADD config.json /root/.docker/
|
||||
-31
@@ -1,31 +0,0 @@
|
||||
{
|
||||
"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)"
|
||||
}
|
||||
}
|
||||
-68
@@ -1,68 +0,0 @@
|
||||
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user