From b7d5e057f73c79d7e74dbce0e4ed5780dc5e424a Mon Sep 17 00:00:00 2001 From: Pavlo Golub Date: Fri, 20 Dec 2024 14:55:15 +0100 Subject: [PATCH] v201224 release (#89) * [+] bump Python to v3.13.1 * [+] bump etcd to v3.5.16 * [+] bump Patroni to v4.0.4 * [+] bump vip-manager to v3.0.0 * [+] bump PostgreSQL to v17.2 * [*] add Ignore error action --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- env.ps1 | 10 +++++----- make.ps1 | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cf84a0c..ef72544 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/setup-python@v5 with: - python-version: '3.12.5' + python-version: '3.13.1' - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 003990a..80fb103 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/setup-python@v5 with: - python-version: '3.12.5' + python-version: '3.13.1' - name: Check out code uses: actions/checkout@v4 diff --git a/env.ps1 b/env.ps1 index 3f993b3..3f4b6fc 100644 --- a/env.ps1 +++ b/env.ps1 @@ -1,12 +1,12 @@ $MD = "PES" $VCREDIST_REF = "https://aka.ms/vs/17/release/vc_redist.x64.exe" -$ETCD_REF = "https://github.com/etcd-io/etcd/releases/download/v3.5.16/etcd-v3.5.16-windows-amd64.zip" -$PATRONI_REF = "https://github.com/patroni/patroni/archive/refs/tags/v4.0.2.zip" +$ETCD_REF = "https://github.com/etcd-io/etcd/releases/download/v3.5.17/etcd-v3.5.17-windows-amd64.zip" +$PATRONI_REF = "https://github.com/patroni/patroni/archive/refs/tags/v4.0.4.zip" $MICRO_REF = "https://github.com/zyedidia/micro/releases/download/v2.0.14/micro-2.0.14-win64.zip" $WINSW_REF = "https://github.com/winsw/winsw/releases/download/v2.12.0/WinSW.NET461.exe" -$VIP_REF = "https://github.com/cybertec-postgresql/vip-manager/releases/download/v2.6.0/vip-manager_2.6.0_Windows_x86_64.zip" -$PGSQL_REF = "https://get.enterprisedb.com/postgresql/postgresql-16.4-1-windows-x64-binaries.zip" -$PYTHON_REF = "https://www.python.org/ftp/python/3.12.5/python-3.12.5-amd64.exe" +$VIP_REF = "https://github.com/cybertec-postgresql/vip-manager/releases/download/v3.0.0/vip-manager_3.0.0_Windows_x86_64.zip" +$PGSQL_REF = "https://get.enterprisedb.com/postgresql/postgresql-17.2-1-windows-x64-binaries.zip" +$PYTHON_REF = "https://www.python.org/ftp/python/3.13.1/python-3.13.1-amd64.exe" # one should change python version in github action workflows when changed here $SEVENZIP = "C:\Program Files\7-Zip\7z.exe" diff --git a/make.ps1 b/make.ps1 index df38c68..5fe4271 100644 --- a/make.ps1 +++ b/make.ps1 @@ -15,7 +15,7 @@ function Extract-ZipFile { } else { Expand-Archive -Path "$zipFilePath" -DestinationPath "$destinationPath" } - Remove-Item -Force "$zipFilePath" + Remove-Item -Force "$zipFilePath" -ErrorAction Ignore } function Compress-ToZipFile { @@ -68,7 +68,7 @@ function Get-VIPManager { Invoke-WebRequest -Uri $VIP_REF -OutFile "$env:TEMP\vip.zip" Extract-ZipFile "$env:TEMP\vip.zip" "$MD" Rename-Item "$MD\vip-manager*" "vip-manager" - Remove-Item "$MD\vip-manager\*.yml" -ErrorAction SilentlyContinue + Remove-Item "$MD\vip-manager\*.yml" -ErrorAction Ignore Copy-Item "src\vip.yaml" "$MD\vip-manager" Write-Host "`n--- VIP-MANAGER downloaded ---" -ForegroundColor green } @@ -77,7 +77,7 @@ function Get-PostgreSQL { Write-Host "`n--- Download POSTGRESQL ---" -ForegroundColor blue Invoke-WebRequest -Uri $PGSQL_REF -OutFile "$env:TEMP\pgsql.zip" Extract-ZipFile "$env:TEMP\pgsql.zip" "$MD" - Remove-Item -Recurse -Force "$MD\pgsql\pgAdmin 4", "$MD\pgsql\symbols" + Remove-Item -Recurse -Force "$MD\pgsql\pgAdmin 4", "$MD\pgsql\symbols" -ErrorAction Ignore Write-Host "`n--- POSTGRESQL downloaded ---" -ForegroundColor green } @@ -86,7 +86,7 @@ function Get-Patroni { Invoke-WebRequest -Uri $PATRONI_REF -OutFile "$env:TEMP\patroni.zip" Extract-ZipFile "$env:TEMP\patroni.zip" "$MD" Rename-Item "$MD\patroni-*" "patroni" - Remove-Item "$MD\patroni\postgres?.yml" + Remove-Item "$MD\patroni\postgres?.yml" -ErrorAction Ignore Copy-Item "src\patroni.yaml" "$MD\patroni" Write-Host "`n--- PATRONI downloaded ---" -ForegroundColor green }