update build pipeline and deployment config

This commit is contained in:
2026-07-31 16:04:15 +02:00
parent 37f7535693
commit f8b1c65221
2 changed files with 7 additions and 12 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
DOPT_STOP_FOLDER_NAME=python
DOPT_DB_CRM=data/wce_crm.db
DOPT_DB_MAIN=data/wce_grunderfassung.db
DOPT_DB_CRM=data/db/wce_crm.db
DOPT_DB_MAIN=data/db/wce_grunderfassung.db
DOPT_PATH_LOGGING=data/logs
DOPT_PATH_FILE_STORAGE=data/files
DOPT_ALEMBIC_BASE=python/alembic
+5 -10
View File
@@ -45,15 +45,10 @@ Write-Output "Deleted outstanding artifacts successfully"
Write-Output "Create data folder..."
$pattern = "dopt_nafka_wce-crm_v*"
$data_folder = Join-Path -Path $ENV_PATH -ChildPath 'data'
if (-not (Test-Path -Path $data_folder)){
Write-Output "[PWSH] Data path not existing. Create..."
New-Item -Path $data_folder -ItemType Directory
}
else {
Write-Output "Data path already exists."
}
create_folder -base_path $ENV_PATH -folder_name 'data' -recreate
create_folder -base_path $ENV_PATH -folder_name 'data/db'
create_folder -base_path $ENV_PATH -folder_name 'data/files'
Write-Output "Building package..."
@@ -93,10 +88,10 @@ if ($? -eq $false){
}
Write-Output "Successfully installed package"
# copy database file
# copy database files
Write-Output "Copying database files..."
$copy_file = Join-Path -Path $SRC_PATH -ChildPath 'data/db/wce_grunderfassung.db'
$dest_file = Join-Path -Path $ENV_PATH -ChildPath 'data'
$dest_file = Join-Path -Path $ENV_PATH -ChildPath 'data/db'
Copy-Item -Path $copy_file -Destination $dest_file -Force
if ($? -eq $false){
Write-Output "[PWSH] Exiting script because there were errors while copying database 'Grunderfassung'"