@xfe-repo/mini-app 0.0.18 → 0.1.1

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
@@ -175,12 +175,17 @@ steps:
175
175
  - name: deploy-to-test
176
176
  image: xhj-prod-registry-vpc.cn-hangzhou.cr.aliyuncs.com/xhj-image-common/deploy-helm:latest
177
177
  commands:
178
+ - export KUBECONFIG=$PWD/kube_config
178
179
  - cp deploy/helm/values.yaml deploy/helm/values.test.yaml
179
180
  - sed -i "s/<<ENV_TYPE>>/test/g" deploy/helm/values.test.yaml
180
181
  - sed -i "s/<<APP_SUFFIX>>/-$HOST_PREFIX/g" deploy/helm/values.test.yaml
181
182
  - sed -i "s/<<HOST_PREFIX>>/$HOST_PREFIX/g" deploy/helm/values.test.yaml
182
- - helm template deploy/helm --values deploy/helm/values.test.yaml
183
- - helm template deploy/helm --values deploy/helm/values.test.yaml | kubectl --kubeconfig=kube_config apply -f -
183
+ - appName="`echo ${DRONE_REPO//\//-}`"
184
+ - chartName="$appName-$HOST_PREFIX"
185
+ - echo "$chartName"
186
+ - sed -i "s/deployment/$chartName/g" deploy/helm/Chart.yaml
187
+ - sed -i "s/1.0.0/0.0.0-$CI_COMMIT_SHA/g" deploy/helm/Chart.yaml
188
+ - helm upgrade --install "$chartName" deploy/helm -f deploy/helm/values.test.yaml --namespace deployment-test --create-namespace --history-max 5
184
189
  when:
185
190
  event:
186
191
  - custom
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/mini-app",
3
- "version": "0.0.18",
3
+ "version": "0.1.1",
4
4
  "bin": {
5
5
  "xfe-mini": "./bin/index.js"
6
6
  },