@xfe-repo/web-app 1.0.4 → 1.0.5
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/package.json +1 -1
- package/scripts/config.js +6 -0
package/package.json
CHANGED
package/scripts/config.js
CHANGED
|
@@ -10,6 +10,12 @@ const configDeploy = () => {
|
|
|
10
10
|
|
|
11
11
|
if (!xfeConfig?.deploy) return
|
|
12
12
|
|
|
13
|
+
// 处理drone配置 将drone配置写入.drone.yml
|
|
14
|
+
const droneConfigFilePath = path.resolve(__dirname, '../deploy/.drone.yml')
|
|
15
|
+
|
|
16
|
+
// 将drone配置写入.drone.yml
|
|
17
|
+
fs.cpSync(droneConfigFilePath, xfeConfig.deploy.droneConfigPath || './.drone.yml')
|
|
18
|
+
|
|
13
19
|
// 处理写入deploy values配置
|
|
14
20
|
const valuesYamlFilePath = path.resolve(__dirname, '../deploy/helm/values.yaml')
|
|
15
21
|
const valuesYamlFile = fs.readFileSync(valuesYamlFilePath, 'utf8')
|