mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
SYNC: set current version for azure build
This commit is contained in:
committed by
Diflow
parent
97c8dfa5b9
commit
f8e2af4fd4
@@ -47,6 +47,11 @@ changePackageFile('packages/serve', json.version);
|
|||||||
changePackageFile('packages/filterparser', json.version);
|
changePackageFile('packages/filterparser', json.version);
|
||||||
changePackageFile('packages/dbmodel', json.version);
|
changePackageFile('packages/dbmodel', json.version);
|
||||||
|
|
||||||
|
if (fs.existsSync('packer/azure-ubuntu.pkr.hcl')) {
|
||||||
|
const text = fs.readFileSync('packer/azure-ubuntu.pkr.hcl', { encoding: 'utf-8' });
|
||||||
|
fs.writeFileSync('packer/azure-ubuntu.pkr.hcl', text.replace(/image_version\s*=\s*"[^"]+"/, `image_version = "${json.version}"`), { encoding: 'utf-8' });
|
||||||
|
}
|
||||||
|
|
||||||
for (const package of fs.readdirSync('plugins')) {
|
for (const package of fs.readdirSync('plugins')) {
|
||||||
if (!package.startsWith('dbgate-plugin-')) continue;
|
if (!package.startsWith('dbgate-plugin-')) continue;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user