@xfe-repo/mini-app 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/deploy/.drone.yml CHANGED
@@ -123,8 +123,8 @@ steps:
123
123
  image: xhj-prod-registry-vpc.cn-hangzhou.cr.aliyuncs.com/xhj-image-common/node-base:20.17.0-pnpm
124
124
  resources:
125
125
  limits:
126
- cpu: 2000
127
- memory: 4000MiB
126
+ cpu: 4000
127
+ memory: 8000MiB
128
128
  volumes:
129
129
  - name: node-modules
130
130
  path: /drone/src/node_modules
@@ -163,6 +163,8 @@ steps:
163
163
  # 将$INFRA_K8S_CONFIG或$SAAS_K8S_CONFIG写入kube_config
164
164
  - echo "$TARGET_K8S" | grep -q "infra" && echo "$INFRA_K8S_CONFIG" > kube_config || echo "$SAAS_K8S_CONFIG" > kube_config
165
165
  # 将环境类型写入values.yaml
166
+ - appName="`echo ${DRONE_REPO//\//-}`"
167
+ - sed -i "s/<<APP_NAME>>/$appName/g" deploy/helm/values.yaml
166
168
  - sed -i "s/<<CI_COMMIT_SHA>>/$CI_COMMIT_SHA/g" deploy/helm/values.yaml
167
169
  - sed -i "s/<<TAG_CONTENT>>/$DRONE_TAG/g" deploy/helm/values.yaml
168
170
  # 展示values.yaml 与 TARGET_K8S
@@ -176,8 +178,7 @@ steps:
176
178
  - sed -i "s/<<ENV_TYPE>>/test/g" deploy/helm/values.test.yaml
177
179
  - sed -i "s/<<APP_SUFFIX>>/-$HOST_PREFIX/g" deploy/helm/values.test.yaml
178
180
  - sed -i "s/<<HOST_PREFIX>>/$HOST_PREFIX/g" deploy/helm/values.test.yaml
179
- - appName="`echo ${DRONE_REPO//\//-}`"
180
- - chartName="$appName-$HOST_PREFIX"
181
+ - chartName="${DRONE_REPO//\//-}-$HOST_PREFIX"
181
182
  - echo "$chartName"
182
183
  - sed -i "s/deployment/$chartName/g" deploy/helm/Chart.yaml
183
184
  - sed -i "s/1.0.0/0.0.0-$CI_COMMIT_SHA/g" deploy/helm/Chart.yaml
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/mini-app",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "bin": {
5
5
  "xfe-mini": "./bin/index.js"
6
6
  },